From 90ab3585d955daaf9891f42cd40e728506f1cefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 19 Mar 2024 11:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/App.vue b/App.vue index 6305afb..cd6c74a 100644 --- a/App.vue +++ b/App.vue @@ -9,8 +9,12 @@ onLaunch: function() {}, methods: { ...mapMutations(['socketOpenfalse']), + ...mapMutations(['scoket']), }, onShow: function() { + if (uni.getStorageSync('patientId') && !this.$store.state.socketOpen) { + this.scoket(); + } createMobileToken().then(res => { uni.setStorageSync("token", res.data.token) })