21 lines
575 B
TypeScript
21 lines
575 B
TypeScript
import { createRouter, createWebHashHistory } from "vue-router"
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes: [{
|
|
path: "/",
|
|
component: () => import("../views/main.vue"),
|
|
children: [{
|
|
path: "",
|
|
component: () => import("../views/home.vue")
|
|
}, {
|
|
path: "/mine",
|
|
component: () => import("../views/mine.vue")
|
|
}, {
|
|
path: "/login",
|
|
component: () => import("../views/login.vue")
|
|
}]
|
|
}]
|
|
})
|
|
|
|
export default router |