From c7bc3eb18e1fda4254ca0195e2133d2ed978de11 Mon Sep 17 00:00:00 2001
From: china <527956374@qq.com>
Date: 星期四, 11 五月 2023 17:48:48 +0800
Subject: [PATCH] 样式调整

---
 src/store/modules/user.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index d9b29c6..b45847f 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -41,8 +41,11 @@
     SET_CONNECTION: (state, data) => {
       // var webConnection = new WebConnection();
       // if(state.webConnection == null){
-        state.webConnection = new WebConnection(data.uri, data.uid);
-        state.webConnection.startConnect();
+      if(data.uri == '-1'){
+        return;
+      }
+      state.webConnection = new WebConnection(data.uri, data.uid);
+      state.webConnection.startConnect();
       // }
     },
     SET_CONNECTION_CLEAR: (state, data) => {
@@ -56,6 +59,9 @@
       state.webSocketMsg = data;
     },
     SET_WS_INFO: (state, data)=>{
+      if(data.uri == '-1'){
+        return;
+      }
       state.uri = data.uri;
       state.uid = data.uid;
     }

--
Gitblit v1.9.1