You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
906 B
44 lines
906 B
import Layout from "@/layout/index"
|
|
import Redirect from "@/view/app/redirect"
|
|
import Login from "@/view/app/login/index"
|
|
import Page403 from "@/view/app/403"
|
|
import Page404 from "@/view/app/404"
|
|
import Page500 from "@/view/app/500"
|
|
import routes from './module'
|
|
import {deepClone} from "@/util"
|
|
|
|
export function getDynamicRoutes() {
|
|
return deepClone(routes)
|
|
}
|
|
|
|
//系统自有路由
|
|
export default [
|
|
{
|
|
path: '/redirect',
|
|
component: Layout,
|
|
children: [
|
|
{
|
|
path: ':path(.*)',
|
|
props: true,
|
|
component: Redirect
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/login',
|
|
alias: '/register',
|
|
component: Login
|
|
},
|
|
{
|
|
path: '/403',
|
|
component: Page403
|
|
},
|
|
{
|
|
path: '/404',
|
|
component: Page404
|
|
},
|
|
{
|
|
path: '/500',
|
|
component: Page500
|
|
}
|
|
]
|
|
|