From 50dfd64df930a2c9e8776ecfecc018e89845384d Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期一, 03 八月 2020 20:03:55 +0800 Subject: [PATCH] 实时监控双击左侧树app修改 --- src/components/LeftNav.vue | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/LeftNav.vue b/src/components/LeftNav.vue index e3ef85e..6fe6546 100644 --- a/src/components/LeftNav.vue +++ b/src/components/LeftNav.vue @@ -337,24 +337,24 @@ loadingGBTree: false }; }, - watch: { - $route(to, from) { - switch (to.name) { - case "Searching": - this.cameraAuth = "videoSearch:camera" - this.dataStack = "videoSearch:dataStack" - break - case "VideoManage": - this.cameraAuth = "VIDEOCAMERA:camera" - this.dataStack = "VIDEOCAMERA:dataStack" - break - default: - this.cameraAuth = "videoMonitor:camera" - this.dataStack = "videoMonitor:dataStack" - } - // console.log("璺敱鍙樺寲锛�", to, from) - } - }, + // watch: { + // $route(to, from) { + // switch (to.name) { + // case "Searching": + // this.cameraAuth = "videoSearch:camera" + // this.dataStack = "videoSearch:dataStack" + // break + // case "VideoManage": + // this.cameraAuth = "VIDEOCAMERA:camera" + // this.dataStack = "VIDEOCAMERA:dataStack" + // break + // default: + // this.cameraAuth = "videoMonitor:camera" + // this.dataStack = "videoMonitor:dataStack" + // } + // // console.log("璺敱鍙樺寲锛�", to, from) + // } + // }, created() { if (this.showCam) { this.TreeDataPool.treeActiveName = "camera" -- Gitblit v1.8.0