租户管理的代码框架

This commit is contained in:
zhonghua1
2025-12-20 17:03:31 +08:00
parent 1b3df8f5a4
commit 74ff0a53e1
5 changed files with 398 additions and 15 deletions

View File

@@ -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 }
]