mirror of https://github.com/halo-dev/halo-admin
Fix theme upload loading bug
parent
09732030a4
commit
4c0a72ee29
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue