feat: 暂存
This commit is contained in:
@@ -1,5 +1,29 @@
|
||||
import HelloWorld from "@/components/HelloWorld.vue";
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
const routes = [{ path: "/", component: HelloWorld }];
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/",
|
||||
name: "Root",
|
||||
component: () => import("@/components/HelloWorld.vue"),
|
||||
children: []
|
||||
},
|
||||
{
|
||||
path: "/auth",
|
||||
name: "Authentication",
|
||||
component: () => import("@/layouts/authPage/authPageLayout.vue"),
|
||||
children: [
|
||||
{
|
||||
path: "login",
|
||||
name: "Login",
|
||||
component: () => import("@/views/auth/login.vue")
|
||||
},
|
||||
{
|
||||
path: "register",
|
||||
name: "Register",
|
||||
component: () => import("@/views/auth/register.vue")
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export default routes;
|
||||
|
||||
Reference in New Issue
Block a user