智慧保安互联网APP
liuyg
2021-08-12 9c4def893d6a3d873d593321293e0fff975acca3
store/mutations.js
@@ -92,6 +92,20 @@
      WxStorage.set("accounts", data.accounts);
      WxStorage.set("pass", data.pass);
   },
   // useWebSocket(state){
   //    uni.onSocketMessage(function(res) {
   //       console.log(res.data);
   //       var data  = JSON.parse(res.data)
   //       if (data.type == 'video') {
   //          // this.receiveVideo('Receiver', );
   //          console.log('进入接受 跳转',data.type)
   //          uni.navigateTo({
   //             url: '../videoCall/videoCall?state=Receiver&type=' + data.type +'&room=' + data.roomId + '&name=' + data.name + '&faqiid=' + data.faqiid
   //          });
   //       }
   //       // console.log('收到服务器内容:' + res.data);
   //    });
   // }
   loginReset(state) { //重置
      state.loging = false;
      state.message.useName = '过客 ';