代码优化,结构调整,进度50%
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user