diff --git a/QMPlusVuePage/src/store/module/router.js b/QMPlusVuePage/src/store/module/router.js index 2b2129ef797c9a955dd74b3a5ed8947090a2ffc9..8025e84199f3497e2294f60d4befcfe8e3ea12bf 100644 --- a/QMPlusVuePage/src/store/module/router.js +++ b/QMPlusVuePage/src/store/module/router.js @@ -16,15 +16,25 @@ export const router = { actions: { // 从后台获取动态路由 async SetAsyncRouter({ commit }) { + const baseRouter = [{ + path: '/layout', + name: 'layout', + component: "view/layout/index.vue", + meta: { + title: "底层layout" + }, + children: [] + }] const asyncRouterRes = await asyncMenu() const asyncRouter = asyncRouterRes.data.menus - asyncRouter.push({ + baseRouter[0].children = asyncRouter + baseRouter.push({ path: '*', redirect: '/404' }) - asyncRouterHandle(asyncRouter) - commit('setAsyncRouter', asyncRouter) + asyncRouterHandle(baseRouter) + commit('setAsyncRouter', baseRouter) } }, getters: { diff --git a/QMPlusVuePage/src/view/superAdmin/authority/authority.vue b/QMPlusVuePage/src/view/superAdmin/authority/authority.vue index 2278ab7da0e5b9a612088098ff77274acc2c2583..efee867dc8f6bfb30b0c97d56e6642fd336bed97 100644 --- a/QMPlusVuePage/src/view/superAdmin/authority/authority.vue +++ b/QMPlusVuePage/src/view/superAdmin/authority/authority.vue @@ -6,8 +6,9 @@ - + @@ -23,7 +24,7 @@ hide-on-single-page layout="total, sizes, prev, pager, next, jumper" > - + @@ -38,35 +39,69 @@ 确 定 + + + + + +