Vue3 + Element Plus版本iot前端迁移到vben版本

This commit is contained in:
Administrator
2025-10-07 19:58:59 +08:00
parent e4707ef380
commit 877a03df4a
124 changed files with 20425 additions and 168 deletions

View File

@@ -0,0 +1,37 @@
import type { RouteRecordRaw } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
path: '/iot',
name: 'IoTCenter',
meta: {
title: 'IoT 物联网',
icon: 'lucide:cpu',
keepAlive: true,
hideInMenu: true,
},
children: [
{
path: 'product/detail/:id',
name: 'IoTProductDetail',
meta: {
title: '产品详情',
activePath: '/iot/device/product',
},
component: () => import('#/views/iot/product/product/modules/detail/index.vue'),
},
{
path: 'device/detail/:id',
name: 'IoTDeviceDetail',
meta: {
title: '设备详情',
activePath: '/iot/device/device',
},
component: () => import('#/views/iot/device/device/modules/detail/index.vue'),
},
],
},
];
export default routes;