1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| 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/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/detail/index.vue'),
| },
| {
| path: 'ota/operation/firmware/detail/:id',
| name: 'IoTOtaFirmwareDetail',
| meta: {
| title: '固件详情',
| activePath: '/iot/operation/ota/firmware',
| },
| component: () => import('#/views/iot/ota/firmware/detail/index.vue'),
| },
| ],
| },
| ];
|
| export default routes;
|
|