fantasia-archive/src/router/routes.ts

31 lines
797 B
TypeScript
Raw Normal View History

2021-01-31 02:43:13 +13:00
import { RouteConfig } from "vue-router"
2021-03-04 13:27:07 +13:00
import DocumentLayout from "src/layouts/DocumentLayout.vue"
2021-01-31 02:43:13 +13:00
import ProjectManagentLayout from "layouts/ProjectManagentLayout.vue"
const routes: RouteConfig[] = [
{
path: "/",
component: ProjectManagentLayout,
children: [
{ path: "", component: () => import("pages/WelcomeScreen.vue") }
]
},
{
path: "/project",
2021-03-04 13:27:07 +13:00
component: DocumentLayout,
2021-01-31 02:43:13 +13:00
children: [
{ path: "/project", component: () => import("pages/ProjectScreen.vue") },
{ path: "/project/display-content/:type/:id", component: () => import("pages/DocumentDisplay.vue") }
]
},
// Always leave this as last one,
// but you can also remove it
{
path: "*",
component: () => import("pages/Error404.vue")
}
]
export default routes