From ae1aad66a165ee7253bed2127a3b53baa40c2361 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期三, 17 五月 2023 08:35:33 +0800 Subject: [PATCH] 修复错误,增加验证 --- App.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index 697e173..727d723 100644 --- a/App.vue +++ b/App.vue @@ -2,10 +2,12 @@ import { mapState, mapMutations } from 'vuex'; export default { onShow() {}, + onLaunch() {}, onHide() { console.log('appvue闅愯棌鍚庡彴'); this.changeisconnect(false); - if (!this.globalisconnect) { + console.log(this.globalisUploadimg); + if (!this.globalisconnect && !this.globalisUploadimg) { uni.switchTab({ url: '/pages/tabbar-page/index-tabbar/index-tabbar' }); @@ -15,7 +17,7 @@ ...mapMutations(['changeisconnect']) }, computed: { - ...mapState(['globalisconnect']) + ...mapState(['globalisconnect', 'globalisUploadimg']) } }; </script> -- Gitblit v1.9.1