@@ -217,6 +217,7 @@
},
methods: {
go(userid,lastUserName,nickname,id,bool){
+ let _this=this;
if(bool==0){
/* console.log("https://192.168.1.102:4397/websocket/usercontroller/viewoffline?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname); */
window.location.href="https://192.168.1.102:4397/websocket/usercontroller/viewoffline?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname;
@@ -751,6 +751,7 @@ export default {
success(data) {
console.log('websocket连接成功');
}
+
});
let windpowerstationid = uni.getStorageSync('windpowerstationName');
// 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】