Prechádzať zdrojové kódy

Merge branch 'main' of http://git.cc-lotus.info/util/web-template-vue3-js

lrf 1 rok pred
rodič
commit
45d905a030
1 zmenil súbory, kde vykonal 37 pridanie a 1 odobranie
  1. 37 1
      src/router/index.js

+ 37 - 1
src/router/index.js

@@ -31,12 +31,48 @@ const router = createRouter({
           path: '/',
           name: 'dashboard',
           meta: {
-            title: '首页',
+            title: 'dashboard',
             affix: true,
             keepAlive: true,
             alwaysShow: false
           },
           component: () => import('@/views/home/index.vue')
+        },
+        {
+          path: '/system',
+          meta: { title: 'system' },
+          children: [
+            {
+              path: '/system/menus',
+              meta: { title: 'menus' },
+              component: () => import('@/views/system/menus/index.vue')
+            },
+            {
+              path: '/system/role',
+              meta: { title: 'role' },
+              component: () => import('@/views/system/role/index.vue')
+            },
+            {
+              path: '/system/dict',
+              meta: { title: 'dict' },
+              component: () => import('@/views/system/dict/index.vue')
+            },
+            {
+              path: '/system/dictData',
+              meta: { title: 'dictData' },
+              component: () => import('@/views/system/dictData/index.vue')
+            },
+            {
+              path: '/system/config',
+              meta: { title: 'config' },
+              component: () => import('@/views/system/config/index.vue')
+            },
+            {
+              path: '/system/module',
+              meta: { title: 'module' },
+              component: () => import('@/views/system/module/index.vue')
+            }
+          ]
         }
       ]
     }