异步加载ip,修复实时视频退出wss未关闭

This commit is contained in:
junleea 2024-10-26 14:34:28 +08:00
parent 647afd9e94
commit 120e5c6167
6 changed files with 6 additions and 5 deletions

View File

@ -201,7 +201,7 @@ export default {
router.push("/login"); router.push("/login");
} }
// console.log("mounted"); // console.log("mounted");
await this.getIpClient(); this.getIpClient();
this.getDeviceList(); this.getDeviceList();
}, },
}; };

View File

@ -140,7 +140,7 @@ export default {
router.push("/login"); router.push("/login");
} }
// console.log("mounted"); // console.log("mounted");
await this.getIpClient(); this.getIpClient();
this.getCIDLogList(); this.getCIDLogList();
}, },
}; };

View File

@ -231,7 +231,7 @@ export default {
router.push("/login"); router.push("/login");
} }
// console.log("mounted"); // console.log("mounted");
await this.getIpClient(); this.getIpClient();
this.getDeviceList(); this.getDeviceList();
}, },
}; };

View File

@ -36,6 +36,7 @@ export default {
}, },
methods: { methods: {
handleMenuSelect(val) { handleMenuSelect(val) {
this.socket.close();
router.push(val); router.push(val);
}, },
connectWebSocket() { connectWebSocket() {

View File

@ -417,7 +417,7 @@ export default {
router.push("/login"); router.push("/login");
} }
// console.log("mounted"); // console.log("mounted");
await this.getIpClient(); this.getIpClient();
this.getGroupList(); this.getGroupList();
}, },
}; };

View File

@ -211,7 +211,7 @@ export default {
router.push("/login"); router.push("/login");
} }
// console.log("mounted"); // console.log("mounted");
await this.getIpClient(); this.getIpClient();
// if( Cookies.get("entrydate")){ // if( Cookies.get("entrydate")){
// console.log("entrydate:",Cookies.get("entrydate")); // console.log("entrydate:",Cookies.get("entrydate"));
// this.tokenData.entrydate = [Object(Cookies.get("entrydate")[0]),Object(Cookies.get("entrydate")[1])]; // this.tokenData.entrydate = [Object(Cookies.get("entrydate")[0]),Object(Cookies.get("entrydate")[1])];