From 0b67fd879ccd4fb6319dc016babd3bb8ea79dff0 Mon Sep 17 00:00:00 2001 From: shikeying <pxzsky@163.com> Date: 星期二, 25 四月 2023 18:47:35 +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