Fix theme upload loading bug

pull/25/head
johnniang 2019-06-12 01:03:19 +08:00
parent 09732030a4
commit 4c0a72ee29
1 changed files with 10 additions and 6 deletions

View File

@ -456,12 +456,16 @@ export default {
},
handleFetching() {
this.fetchButtonLoading = true
themeApi.fetching(this.fetchingUrl).then(response => {
this.$message.success('拉取成功!')
this.uploadVisible = false
this.fetchButtonLoading = false
this.loadThemes()
})
themeApi
.fetching(this.fetchingUrl)
.then(response => {
this.$message.success('拉取成功!')
this.uploadVisible = false
this.loadThemes()
})
.finally(() => {
this.fetchButtonLoading = false
})
},
handleReload() {
themeApi.reload().then(response => {