From 9b72edacdf541d768ce702e53195fdd24ab44ccf Mon Sep 17 00:00:00 2001 From: douyage Date: Tue, 18 Aug 2026 10:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E7=9A=84?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=EF=BC=8C=E5=92=8C=E5=88=87=E6=8D=A2=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=8C=89=E7=85=A7=E6=A1=86=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 8 +- src/views/video/LivePreview.vue | 112 ++++++++++++++----- src/views/video/components/NvrDeviceTree.vue | 12 +- 3 files changed, 90 insertions(+), 42 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 9ad0015..fc627fd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -127,7 +127,7 @@ export const constantRoutes = [ { path: '', component: Layout, - redirect: 'index', + redirect: '/inspection-workspace/task', hidden: true, children: [ { @@ -347,12 +347,12 @@ export const dynamicRoutes = [ meta: { title: '修改生成配置', activeMenu: '/tool/gen' } } ] - }, + } ] // 防止连续点击多次路由报错 -let routerPush = Router.prototype.push; -let routerReplace = Router.prototype.replace; +const routerPush = Router.prototype.push +const routerReplace = Router.prototype.replace // push Router.prototype.push = function push(location) { return routerPush.call(this, location).catch(err => err) diff --git a/src/views/video/LivePreview.vue b/src/views/video/LivePreview.vue index 9968f95..11c2eda 100644 --- a/src/views/video/LivePreview.vue +++ b/src/views/video/LivePreview.vue @@ -22,19 +22,18 @@ ref="cameraCards" class="camera-card" :class="{ active: activeIndex === index, empty: !slot }" - @click="activeIndex = index" + @click="selectSlot(index)" @dblclick="slot && fullscreen(index)" >