fix(aiot): 删除静态路由文件,消除重复菜单

accessMode 为 backend 模式时菜单由后端接口返回,
静态路由文件 aiot.ts 导致出现两个重复的 AIoT 菜单。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 09:33:34 +08:00
parent e2bde76f20
commit e59eb5fe65

View File

@@ -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;