mirror of
https://github.com/iczer/vue-antd-admin.git
synced 2025-04-06 03:57:44 +08:00
25 lines
371 B
JavaScript
25 lines
371 B
JavaScript
import routerMap from './router.map'
|
|
import {parseRoutes} from '@/utils/routerUtil'
|
|
|
|
// 异步路由配置
|
|
const routesConfig = [
|
|
'login',
|
|
'root',
|
|
{
|
|
router: 'exp404',
|
|
path: '*',
|
|
name: '404'
|
|
},
|
|
{
|
|
router: 'exp403',
|
|
path: '/403',
|
|
name: '403'
|
|
}
|
|
]
|
|
|
|
const options = {
|
|
routes: parseRoutes(routesConfig, routerMap)
|
|
}
|
|
|
|
export default options
|