From 4c1c77821f80297c0f826dfda5a222729e55cd4a Mon Sep 17 00:00:00 2001 From: zclzone Date: Thu, 24 Nov 2022 18:16:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=A4=9A=E7=BA=A7?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/multi-menu/a-1/a-1-1/index.vue | 3 + src/views/multi-menu/a-1/a-1-2/index.vue | 3 + src/views/multi-menu/a-1/index.vue | 8 +++ src/views/multi-menu/a-2/a-2-1/index.vue | 3 + src/views/multi-menu/a-2/index.vue | 8 +++ src/views/multi-menu/index.vue | 8 +++ src/views/multi-menu/route.js | 75 ++++++++++++++++++++++++ 7 files changed, 108 insertions(+) create mode 100644 src/views/multi-menu/a-1/a-1-1/index.vue create mode 100644 src/views/multi-menu/a-1/a-1-2/index.vue create mode 100644 src/views/multi-menu/a-1/index.vue create mode 100644 src/views/multi-menu/a-2/a-2-1/index.vue create mode 100644 src/views/multi-menu/a-2/index.vue create mode 100644 src/views/multi-menu/index.vue create mode 100644 src/views/multi-menu/route.js 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, + }, + }, + ], + }, + ], +}