异步加载ip,修复实时视频退出wss未关闭
This commit is contained in:
parent
647afd9e94
commit
120e5c6167
|
|
@ -201,7 +201,7 @@ export default {
|
|||
router.push("/login");
|
||||
}
|
||||
// console.log("mounted");
|
||||
await this.getIpClient();
|
||||
this.getIpClient();
|
||||
this.getDeviceList();
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ export default {
|
|||
router.push("/login");
|
||||
}
|
||||
// console.log("mounted");
|
||||
await this.getIpClient();
|
||||
this.getIpClient();
|
||||
this.getCIDLogList();
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ export default {
|
|||
router.push("/login");
|
||||
}
|
||||
// console.log("mounted");
|
||||
await this.getIpClient();
|
||||
this.getIpClient();
|
||||
this.getDeviceList();
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleMenuSelect(val) {
|
||||
this.socket.close();
|
||||
router.push(val);
|
||||
},
|
||||
connectWebSocket() {
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ export default {
|
|||
router.push("/login");
|
||||
}
|
||||
// console.log("mounted");
|
||||
await this.getIpClient();
|
||||
this.getIpClient();
|
||||
this.getGroupList();
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ export default {
|
|||
router.push("/login");
|
||||
}
|
||||
// console.log("mounted");
|
||||
await this.getIpClient();
|
||||
this.getIpClient();
|
||||
// if( Cookies.get("entrydate")){
|
||||
// console.log("entrydate:",Cookies.get("entrydate"));
|
||||
// this.tokenData.entrydate = [Object(Cookies.get("entrydate")[0]),Object(Cookies.get("entrydate")[1])];
|
||||
|
|
|
|||
Loading…
Reference in New Issue