Former-commit-id: 61000dc9b721435e9111ebdd2fcf59fc709a0a66
This commit is contained in:
liyang
2018-09-20 14:12:11 +08:00
parent f56ca5c254
commit e0ce56c7e9
164 changed files with 0 additions and 36400 deletions
-75
View File
@@ -1,75 +0,0 @@
// layout
import layoutHeaderAside from '@/layout/header-aside'
const meta = { requiresAuth: true }
/**
* 在主框架内显示
*/
const frameIn = [
{
path: '/',
redirect: { name: 'index' },
component: layoutHeaderAside,
children: [
{
path: 'index',
name: 'index',
meta,
component: () => import('@/pages/index')
},
{
path: '/page1',
name: 'page1',
component: () => import('@/pages/page1'),
meta: { meta, title: '页面 1' }
},
{
path: '/page2',
name: 'page2',
component: () => import('@/pages/page2'),
meta: { meta, title: '页面 2' }
},
{
path: '/page3',
name: 'page3',
component: () => import('@/pages/page3'),
meta: { meta, title: '页面 3' }
}
]
}
]
/**
* 在主框架之外显示
*/
const frameOut = [
// 登陆
{
path: '/login',
name: 'login',
component: () => import('@/pages/login')
}
]
/**
* 错误页面
*/
const errorPage = [
// 404
{
path: '*',
name: '404',
component: () => import('@/pages/error-page-404')
}
]
// 导出需要显示菜单的
export const frameInRoutes = frameIn
// 重新组织后导出
export default [
...frameIn,
...frameOut,
...errorPage
]