Fix theme upload loading bug

pull/3445/head
johnniang 2019-06-12 01:03:19 +08:00
parent d188ecc136
commit d10a9977fd
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 => {