代码优化,结构调整,进度50%

This commit is contained in:
zhengjie
2019-06-28 11:46:06 +08:00
parent 6c06d89355
commit 1b757d6972
54 changed files with 592 additions and 832 deletions

View File

@@ -4,7 +4,7 @@ import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '../views/layout/Layout'
import Layout from '../layout/Layout'
/**
* hidden: true if `hidden:true` will not show in the sidebar(default is false)
@@ -22,17 +22,17 @@ import Layout from '../views/layout/Layout'
export const constantRouterMap = [
{ path: '/login',
meta: { title: '登录', noCache: true },
component: () => import('@/views/login/index'),
component: () => import('@/views/login'),
hidden: true
},
{
path: '/404',
component: () => import('@/views/errorPage/404'),
component: () => import('@/views/features/404'),
hidden: true
},
{
path: '/401',
component: () => import('@/views/errorPage/401'),
component: () => import('@/views/features/401'),
hidden: true
},
{
@@ -42,7 +42,7 @@ export const constantRouterMap = [
children: [
{
path: '/redirect/:path*',
component: () => import('@/views/redirect/index')
component: () => import('@/views/features/redirect')
}
]
},
@@ -53,7 +53,7 @@ export const constantRouterMap = [
children: [
{
path: 'dashboard',
component: () => import('@/views/dashboard/index'),
component: () => import('@/views/home'),
name: '首页',
meta: { title: '首页', icon: 'index', noCache: true, affix: true }
}