|
@@ -62,10 +62,10 @@ export const constantRoutes = [
|
|
|
{
|
|
|
path: '',
|
|
|
component: Layout,
|
|
|
- redirect: '/index',
|
|
|
+ redirect: prefix + '/index',
|
|
|
children: [
|
|
|
{
|
|
|
- path: '/index',
|
|
|
+ path: prefix + '/index',
|
|
|
component: () => import('@/views/dashboard'),
|
|
|
name: 'index',
|
|
|
meta: {title: '业务运行风险', icon: 'dashboard', affix: true}
|
|
@@ -189,11 +189,21 @@ export const constantRoutes = [
|
|
|
{
|
|
|
path: prefix + '/system/dict',
|
|
|
component: () => import('@/views/system/dict/index')
|
|
|
- }
|
|
|
-]
|
|
|
-
|
|
|
-// 动态路由,基于用户权限动态去加载
|
|
|
-export const dynamicRoutes = [
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/system/dict-data',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ permissions: ['system:dict:list'],
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index/:dictId(\\d+)',
|
|
|
+ component: () => import('@/views/system/dict/data'),
|
|
|
+ name: 'Data',
|
|
|
+ meta: {title: '字典数据', activeMenu: '/system/dict'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
path: prefix + '/system/user-auth',
|
|
|
component: Layout,
|
|
@@ -223,20 +233,6 @@ export const dynamicRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: prefix + '/system/dict-data',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- permissions: ['system:dict:list'],
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index/:dictId(\\d+)',
|
|
|
- component: () => import('@/views/system/dict/data'),
|
|
|
- name: 'Data',
|
|
|
- meta: {title: '字典数据', activeMenu: '/system/dict'}
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
path: prefix + '/monitor/job-log',
|
|
|
component: Layout,
|
|
|
hidden: true,
|
|
@@ -264,6 +260,11 @@ export const dynamicRoutes = [
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
+];
|
|
|
+
|
|
|
+// 动态路由,基于用户权限动态去加载
|
|
|
+export const dynamicRoutes = [
|
|
|
+
|
|
|
]
|
|
|
|
|
|
const router = createRouter({
|