From 5bd778d9a1899422ba1e9b67fbe578d759c86685 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 21 十二月 2023 10:19:16 +0800 Subject: [PATCH] 点击称重完成,修改提示信息 --- App.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/App.vue b/App.vue index 758985e..e7e6c3c 100644 --- a/App.vue +++ b/App.vue @@ -10,17 +10,19 @@ }, onShow() { console.log('appvue鏄剧ず'); - if (!this.globalisconnect && !this.globalisUploadimg) { - this.$store.dispatch('websocketInit') - this.changeisconnect(false); - console.log('appvue鐨剋s'); + if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) { + if (!this.is_open_socket) { + this.$store.dispatch('websocketInit') + this.changeisconnect(false); + console.log('appvue鐨剋s'); + } } }, methods: { ...mapMutations(['changeisconnect']) }, computed: { - ...mapState(['globalisconnect', 'globalisUploadimg', 'globalisLogin']) + ...mapState(['globalisconnect', 'globalisUploadimg', 'globalisLogin', 'is_open_socket']) } }; </script> -- Gitblit v1.9.1