diff --git a/src/views/multi-menu/a-1/a-1-1/index.vue b/src/views/multi-menu/a-1/a-1-1/index.vue new file mode 100644 index 0000000..417f6d9 --- /dev/null +++ b/src/views/multi-menu/a-1/a-1-1/index.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/multi-menu/a-1/a-1-2/index.vue b/src/views/multi-menu/a-1/a-1-2/index.vue new file mode 100644 index 0000000..7b0c204 --- /dev/null +++ b/src/views/multi-menu/a-1/a-1-2/index.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/multi-menu/a-1/index.vue b/src/views/multi-menu/a-1/index.vue new file mode 100644 index 0000000..8d93e98 --- /dev/null +++ b/src/views/multi-menu/a-1/index.vue @@ -0,0 +1,8 @@ + diff --git a/src/views/multi-menu/a-2/a-2-1/index.vue b/src/views/multi-menu/a-2/a-2-1/index.vue new file mode 100644 index 0000000..7460f24 --- /dev/null +++ b/src/views/multi-menu/a-2/a-2-1/index.vue @@ -0,0 +1,3 @@ + diff --git a/src/views/multi-menu/a-2/index.vue b/src/views/multi-menu/a-2/index.vue new file mode 100644 index 0000000..8059025 --- /dev/null +++ b/src/views/multi-menu/a-2/index.vue @@ -0,0 +1,8 @@ + diff --git a/src/views/multi-menu/index.vue b/src/views/multi-menu/index.vue new file mode 100644 index 0000000..709b19c --- /dev/null +++ b/src/views/multi-menu/index.vue @@ -0,0 +1,8 @@ + diff --git a/src/views/multi-menu/route.js b/src/views/multi-menu/route.js new file mode 100644 index 0000000..278ae75 --- /dev/null +++ b/src/views/multi-menu/route.js @@ -0,0 +1,75 @@ +const Layout = () => import('@/layout/index.vue') + +export default { + name: 'MultipleMenu', + path: '/multi-menu', + component: Layout, + meta: { + title: '多级菜单', + icon: 'ic:baseline-menu', + role: ['admin'], + requireAuth: true, + order: 4, + }, + children: [ + { + name: 'a-1', + path: 'multiple-menu', + component: () => import('./a-1/index.vue'), + meta: { + title: 'a-1', + icon: 'ic:baseline-menu', + role: ['admin'], + requireAuth: true, + }, + children: [ + { + name: 'a-1-1', + path: 'a-1-1', + component: () => import('./a-1/a-1-1/index.vue'), + meta: { + title: 'a-1-1', + icon: 'ic:baseline-menu', + role: ['admin'], + requireAuth: true, + }, + }, + { + name: 'a-1-2', + path: 'a-1-2', + component: () => import('./a-1/a-1-2/index.vue'), + meta: { + title: 'a-1-2', + icon: 'ic:baseline-menu', + role: ['admin'], + requireAuth: true, + }, + }, + ], + }, + { + name: 'a-2', + path: 'a-2', + component: () => import('./a-2/index.vue'), + meta: { + title: 'a-2', + icon: 'ic:baseline-menu', + role: ['admin'], + requireAuth: true, + }, + children: [ + { + name: 'a-2-1', + path: 'a-2-1', + component: () => import('./a-2/a-2-1/index.vue'), + meta: { + title: 'a-2-1(单个子菜单)', + icon: 'ic:baseline-menu', + role: ['admin'], + requireAuth: true, + }, + }, + ], + }, + ], +}