feat: 新增组件

This commit is contained in:
DEV_DSW
2025-09-23 16:59:32 +08:00
parent 3c4f14be7f
commit c77c5350aa
14 changed files with 739 additions and 155 deletions

View File

@@ -1,16 +1,26 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHistory } from "vue-router";
const routes = [
{
path: '/',
name: 'Home',
component: () => import('../App.vue')
}
]
path: "/",
name: "login",
component: () => import("../views/login/index.vue"),
},
{
path: "/home",
name: "home",
component: () => import("../views/home/index.vue"),
},
{
path: "/about",
name: "about",
component: () => import("../views/about/index.vue"),
},
];
const router = createRouter({
history: createWebHistory(),
routes
})
history: createWebHistory(import.meta.env.BASE_URL),
routes,
});
export default router
export default router;