From 4c0a72ee29e9a2e6dd0c8a33436332ea4e3a767c Mon Sep 17 00:00:00 2001 From: johnniang Date: Wed, 12 Jun 2019 01:03:19 +0800 Subject: [PATCH] Fix theme upload loading bug --- src/views/interface/ThemeList.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 714a1e5b..e281357c 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -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 => {