42 lines
897 B
TypeScript
42 lines
897 B
TypeScript
|
import { DEFAULT_LAYOUT } from '../base';
|
||
|
import { AppRouteRecordRaw } from '../types';
|
||
|
|
||
|
const IOT: AppRouteRecordRaw = {
|
||
|
path: '/iot',
|
||
|
name: 'iot',
|
||
|
component: DEFAULT_LAYOUT,
|
||
|
meta: {
|
||
|
locale: 'menu.iot',
|
||
|
title: '物联网管理',
|
||
|
icon: 'icon-empty',
|
||
|
requiresAuth: true,
|
||
|
order: 1,
|
||
|
},
|
||
|
children: [
|
||
|
{
|
||
|
path: 'device',
|
||
|
name: 'Device',
|
||
|
component: () => import('@/views/iot/device/index.vue'),
|
||
|
meta: {
|
||
|
// locale: 'menu.system.role',
|
||
|
title: '设备管理',
|
||
|
requiresAuth: true,
|
||
|
permissions: ['*'],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: 'product',
|
||
|
name: 'Product',
|
||
|
component: () => import('@/views/iot/product/index.vue'),
|
||
|
meta: {
|
||
|
// locale: 'menu.system.dept',
|
||
|
title: '产品管理',
|
||
|
requiresAuth: true,
|
||
|
permissions: ['*'],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
|
||
|
export default IOT;
|