mirror of https://github.com/halo-dev/halo
Fix theme upload loading bug
parent
d188ecc136
commit
d10a9977fd
|
@ -456,12 +456,16 @@ export default {
|
||||||
},
|
},
|
||||||
handleFetching() {
|
handleFetching() {
|
||||||
this.fetchButtonLoading = true
|
this.fetchButtonLoading = true
|
||||||
themeApi.fetching(this.fetchingUrl).then(response => {
|
themeApi
|
||||||
this.$message.success('拉取成功!')
|
.fetching(this.fetchingUrl)
|
||||||
this.uploadVisible = false
|
.then(response => {
|
||||||
this.fetchButtonLoading = false
|
this.$message.success('拉取成功!')
|
||||||
this.loadThemes()
|
this.uploadVisible = false
|
||||||
})
|
this.loadThemes()
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.fetchButtonLoading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleReload() {
|
handleReload() {
|
||||||
themeApi.reload().then(response => {
|
themeApi.reload().then(response => {
|
||||||
|
|
Loading…
Reference in New Issue