2024-04-06 09:55:10 +08:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
|
|
|
import HomeView from "@/pages/index.vue";
|
2024-04-06 09:32:25 +08:00
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
|
routes: [
|
|
|
|
{
|
2024-04-06 09:55:10 +08:00
|
|
|
path: "/",
|
|
|
|
name: "home",
|
|
|
|
component: HomeView,
|
2024-04-06 09:32:25 +08:00
|
|
|
},
|
2024-04-06 09:55:10 +08:00
|
|
|
],
|
|
|
|
});
|
2024-04-06 09:32:25 +08:00
|
|
|
|
2024-04-06 09:55:10 +08:00
|
|
|
export default router;
|