diff --git a/src/views/CIDList.vue b/src/views/CIDList.vue index 9a329eb..f32de97 100644 --- a/src/views/CIDList.vue +++ b/src/views/CIDList.vue @@ -201,7 +201,7 @@ export default { router.push("/login"); } // console.log("mounted"); - await this.getIpClient(); + this.getIpClient(); this.getDeviceList(); }, }; diff --git a/src/views/CIDLog.vue b/src/views/CIDLog.vue index c4490a3..38d6141 100644 --- a/src/views/CIDLog.vue +++ b/src/views/CIDLog.vue @@ -140,7 +140,7 @@ export default { router.push("/login"); } // console.log("mounted"); - await this.getIpClient(); + this.getIpClient(); this.getCIDLogList(); }, }; diff --git a/src/views/DeviceList.vue b/src/views/DeviceList.vue index 8179608..ce6b3df 100644 --- a/src/views/DeviceList.vue +++ b/src/views/DeviceList.vue @@ -231,7 +231,7 @@ export default { router.push("/login"); } // console.log("mounted"); - await this.getIpClient(); + this.getIpClient(); this.getDeviceList(); }, }; diff --git a/src/views/DeviceRealVP.vue b/src/views/DeviceRealVP.vue index b286749..c3db93f 100644 --- a/src/views/DeviceRealVP.vue +++ b/src/views/DeviceRealVP.vue @@ -36,6 +36,7 @@ export default { }, methods: { handleMenuSelect(val) { + this.socket.close(); router.push(val); }, connectWebSocket() { diff --git a/src/views/Group.vue b/src/views/Group.vue index 044a1f9..7ba82e1 100644 --- a/src/views/Group.vue +++ b/src/views/Group.vue @@ -417,7 +417,7 @@ export default { router.push("/login"); } // console.log("mounted"); - await this.getIpClient(); + this.getIpClient(); this.getGroupList(); }, }; diff --git a/src/views/VideoList.vue b/src/views/VideoList.vue index 6ab93e2..33214ca 100644 --- a/src/views/VideoList.vue +++ b/src/views/VideoList.vue @@ -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])];