zhaomiao 4 vuotta sitten
vanhempi
commit
6a1de6d2ca
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 1 0
      components/mine/addressBook/addressBook.vue
  2. 1 0
      pages/index/Index.vue

+ 1 - 0
components/mine/addressBook/addressBook.vue

@@ -217,6 +217,7 @@
 		  },
 		  },
 		methods: {
 		methods: {
 			go(userid,lastUserName,nickname,id,bool){
 			go(userid,lastUserName,nickname,id,bool){
+				let _this=this;
 				if(bool==0){
 				if(bool==0){
 					/* console.log("https://192.168.1.102:4397/websocket/usercontroller/viewoffline?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname); */
 					/* 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;
 					 window.location.href="https://192.168.1.102:4397/websocket/usercontroller/viewoffline?send="+userid+"&receive="+id+"&sendname="+lastUserName+"&receivename="+nickname;

+ 1 - 0
pages/index/Index.vue

@@ -751,6 +751,7 @@ export default {
 				success(data) {
 				success(data) {
 					console.log('websocket连接成功');
 					console.log('websocket连接成功');
 				}
 				}
+				
 			});
 			});
 			let windpowerstationid = uni.getStorageSync('windpowerstationName');
 			let windpowerstationid = uni.getStorageSync('windpowerstationName');
 			// 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
 			// 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】