From e59eb5fe658203b8794d419e947ce71f9c8fd808 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Mon, 9 Feb 2026 09:33:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(aiot):=20=E5=88=A0=E9=99=A4=E9=9D=99?= =?UTF-8?q?=E6=80=81=E8=B7=AF=E7=94=B1=E6=96=87=E4=BB=B6=EF=BC=8C=E6=B6=88?= =?UTF-8?q?=E9=99=A4=E9=87=8D=E5=A4=8D=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit accessMode 为 backend 模式时菜单由后端接口返回, 静态路由文件 aiot.ts 导致出现两个重复的 AIoT 菜单。 Co-Authored-By: Claude Opus 4.6 --- .../src/router/routes/modules/aiot.ts | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 apps/web-antd/src/router/routes/modules/aiot.ts diff --git a/apps/web-antd/src/router/routes/modules/aiot.ts b/apps/web-antd/src/router/routes/modules/aiot.ts deleted file mode 100644 index c61ea6746..000000000 --- a/apps/web-antd/src/router/routes/modules/aiot.ts +++ /dev/null @@ -1,71 +0,0 @@ -import type { RouteRecordRaw } from 'vue-router'; - -const routes: RouteRecordRaw[] = [ - { - path: '/aiot', - name: 'AIoT', - meta: { - title: 'AIoT 智能平台', - icon: 'ant-design:robot-outlined', - keepAlive: true, - }, - children: [ - { - path: 'alarm/list', - name: 'AiotAlarmList', - component: () => import('#/views/aiot/alarm/list/index.vue'), - meta: { - title: '告警列表', - icon: 'ant-design:alert-outlined', - }, - }, - { - path: 'alarm/summary', - name: 'AiotAlarmSummary', - component: () => import('#/views/aiot/alarm/summary/index.vue'), - meta: { - title: '摄像头告警汇总', - icon: 'ant-design:video-camera-outlined', - }, - }, - { - path: 'device/camera', - name: 'AiotDeviceCamera', - component: () => import('#/views/aiot/device/camera/index.vue'), - meta: { - title: '摄像头管理', - icon: 'ant-design:camera-outlined', - }, - }, - { - path: 'device/roi', - name: 'AiotDeviceRoi', - component: () => import('#/views/aiot/device/roi/index.vue'), - meta: { - title: 'ROI 区域配置', - icon: 'ant-design:aim-outlined', - }, - }, - { - path: 'video/live', - name: 'AiotVideoLive', - component: () => import('#/views/aiot/video/live/index.vue'), - meta: { - title: '实时视频', - icon: 'ant-design:play-circle-outlined', - }, - }, - { - path: 'edge/node', - name: 'AiotEdgeNode', - component: () => import('#/views/aiot/edge/node/index.vue'), - meta: { - title: '边缘节点管理', - icon: 'ant-design:cluster-outlined', - }, - }, - ], - }, -]; - -export default routes;