From 0c8dcea2b62a8968a8d5945e5e96e72d74a6667c Mon Sep 17 00:00:00 2001 From: johnniang Date: Fri, 12 Apr 2019 10:15:08 +0800 Subject: [PATCH] Change router view to page view component for /interface route --- src/config/router.config.js | 8 +- src/views/interface/MenuList.vue | 177 ++++++++++++++++++------------ src/views/interface/ThemeEdit.vue | 68 ++++++------ src/views/interface/ThemeList.vue | 7 +- 4 files changed, 146 insertions(+), 114 deletions(-) diff --git a/src/config/router.config.js b/src/config/router.config.js index 4273a9a4f..24db17189 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -2,7 +2,6 @@ import { BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts' export const asyncRouterMap = [ - { path: '/', name: 'index', @@ -10,7 +9,6 @@ export const asyncRouterMap = [ meta: { title: '首页' }, redirect: '/dashboard', children: [ - // dashboard { path: '/dashboard', @@ -111,7 +109,7 @@ export const asyncRouterMap = [ { path: '/interface', name: 'Interface', - component: RouteView, + component: PageView, redirect: '/interface/themes', meta: { title: '外观', icon: 'skin' }, children: [ @@ -184,7 +182,9 @@ export const asyncRouterMap = [ ] }, { - path: '*', redirect: '/404', hidden: true + path: '*', + redirect: '/404', + hidden: true } ] diff --git a/src/views/interface/MenuList.vue b/src/views/interface/MenuList.vue index dbc924a04..36e85b563 100644 --- a/src/views/interface/MenuList.vue +++ b/src/views/interface/MenuList.vue @@ -1,77 +1,113 @@