From febee0226eb34dcd1e4addb5bb868bc955db466e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=A4=AB=E7=90=B3?= <5356169+zhaofulin@user.noreply.gitee.com> Date: Mon, 1 Apr 2024 11:23:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BottomBtn/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/BottomBtn/index.vue b/src/components/BottomBtn/index.vue index 9b646b8..390b634 100644 --- a/src/components/BottomBtn/index.vue +++ b/src/components/BottomBtn/index.vue @@ -85,20 +85,25 @@ export default { this.$loading(true, 'loadingSb') if (this.key == 2) { approveTask(obj).then(() => { + this.$forceCloseLoading() this.$EventBus.$emit('handleResetLive', 'company-myTrips') this.$EventBus.$emit('handleResetLive', 'company-myClaim') history.back() this.$loading(false, 'loadingSb') }).catch(() => { this.$loading(false, 'loadingSb') + this.$forceCloseLoading() }) } else { rejectTask(obj).then(() => { + this.$forceCloseLoading() this.$EventBus.$emit('handleResetLive', 'company-myTrips') this.$EventBus.$emit('handleResetLive', 'company-myClaim') history.back() this.$loading(false, 'loadingSb') + this.$forceCloseLoading() }).catch(() => { + this.$forceCloseLoading() this.$loading(false, 'loadingSb') }) }