mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
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/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'),
|
|
},
|
|
{
|
|
path: 'ota/firmware/detail/:id',
|
|
name: 'IoTOtaFirmwareDetail',
|
|
meta: {
|
|
title: '固件详情',
|
|
activePath: '/iot/ota',
|
|
},
|
|
component: () =>
|
|
import('#/views/iot/ota/modules/firmware-detail/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|