Browse Source

配置等级路由

machen 1 year ago
parent
commit
b5f9e3e14c
1 changed files with 25 additions and 1 deletions
  1. 25 1
      src/router/index.js

+ 25 - 1
src/router/index.js

@@ -89,7 +89,31 @@ export const constantRoutes = [
       }
     ]
   },
-
+  {
+    path: '/level',
+    component: Layout,
+    meta: { title: '等级管理', icon: 'level-manager' },
+    children: [
+      {
+        path: 'index',
+        name: 'Level',
+        component: () => import('@/views/level/index'),
+        meta: { title: '等级首页', icon: 'level-list' }
+      },
+      {
+        path: 'levelList',
+        name: 'LevelList',
+        component: () => import('@/views/level/levelList'),
+        meta: {title: '等级列表', icon: 'level-list'}
+      },
+      {
+        path: 'addLevel',
+        name: 'AddLevel',
+        component: () => import('@/views/level/addLevel'),
+        meta: {title: '添加等级', icon: 'level-list'}
+      }
+    ]
+  }, 
   {
     path: '/nested',
     component: Layout,