From 619f456f3446a26b419d90d65ffc50b345bf3bb0 Mon Sep 17 00:00:00 2001
From: pixel <303176530@qq.com>
Date: Wed, 1 Apr 2020 15:56:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8E=86=E5=8F=B2=E9=A1=B5?=
=?UTF-8?q?=E7=AD=BE=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
QMPlusVuePage/src/store/module/router.js | 11 ++++
.../layout/aside/historyComponent/history.vue | 63 +++++++++++++++++++
QMPlusVuePage/src/view/layout/aside/index.vue | 9 ++-
QMPlusVuePage/src/view/layout/index.vue | 37 +++++++----
QMPlusVuePage/src/view/superAdmin/api/api.vue | 13 ++++
5 files changed, 120 insertions(+), 13 deletions(-)
create mode 100644 QMPlusVuePage/src/view/layout/aside/historyComponent/history.vue
diff --git a/QMPlusVuePage/src/store/module/router.js b/QMPlusVuePage/src/store/module/router.js
index 212a27a3..168e98ba 100644
--- a/QMPlusVuePage/src/store/module/router.js
+++ b/QMPlusVuePage/src/store/module/router.js
@@ -2,6 +2,16 @@ import { asyncRouterHandle } from '@/utils/asyncRouter';
import { asyncMenu } from '@/api/menu'
+
+const formatRouter = (routes) => {
+ routes && routes.map(item => {
+ item.meta.hidden = item.hidden
+ if (item.children.length > 0) {
+ formatRouter(item.children)
+ }
+ })
+}
+
export const router = {
namespaced: true,
state: {
@@ -27,6 +37,7 @@ export const router = {
}]
const asyncRouterRes = await asyncMenu()
const asyncRouter = asyncRouterRes.data.menus
+ formatRouter(asyncRouter)
baseRouter[0].children = asyncRouter
baseRouter.push({
path: '*',
diff --git a/QMPlusVuePage/src/view/layout/aside/historyComponent/history.vue b/QMPlusVuePage/src/view/layout/aside/historyComponent/history.vue
new file mode 100644
index 00000000..798bb766
--- /dev/null
+++ b/QMPlusVuePage/src/view/layout/aside/historyComponent/history.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/QMPlusVuePage/src/view/layout/aside/index.vue b/QMPlusVuePage/src/view/layout/aside/index.vue
index 41748a32..314cee48 100644
--- a/QMPlusVuePage/src/view/layout/aside/index.vue
+++ b/QMPlusVuePage/src/view/layout/aside/index.vue
@@ -20,7 +20,7 @@