src/store/modules/user.js
@@ -41,6 +41,9 @@ SET_CONNECTION: (state, data) => { // var webConnection = new WebConnection(); // if(state.webConnection == null){ if(data.uri == '-1'){ return; } state.webConnection = new WebConnection(data.uri, data.uid); state.webConnection.startConnect(); // } @@ -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; }