租户管理的代码框架
This commit is contained in:
@@ -140,19 +140,6 @@ export const constantRoutes = [
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
path: '/device',
|
||||
component: Layout,
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
name: 'Device',
|
||||
component: () => import('@/views/device/index'),
|
||||
meta: { title: '设备管理', icon: 'el-icon-mobile-phone' }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
path: '/customer',
|
||||
component: Layout,
|
||||
@@ -359,6 +346,28 @@ export const constantRoutes = [
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
path: '/system',
|
||||
component: Layout,
|
||||
redirect: '/system/device',
|
||||
name: 'SystemRoot',
|
||||
meta: { title: '系统设置', icon: 'el-icon-setting', alwaysShow: true },
|
||||
children: [
|
||||
{
|
||||
path: 'device',
|
||||
name: 'Device',
|
||||
component: () => import('@/views/device/index'),
|
||||
meta: { title: '设备管理', icon: 'el-icon-mobile-phone' }
|
||||
},
|
||||
{
|
||||
path: 'tenant',
|
||||
name: 'Tenant',
|
||||
component: () => import('@/views/tenant/index'),
|
||||
meta: { title: '租户管理', icon: 'el-icon-office-building' }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
// 404 page must be placed at the end !!!
|
||||
{ path: '*', redirect: '/404', hidden: true }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user