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') }) }