feat: 初始化前端项目基础架构

添加项目基础文件结构,包括Vue3+TypeScript配置、路由管理、状态管理和基础页面组件
This commit is contained in:
qingfeng1121
2025-12-09 11:03:15 +08:00
commit 0f89705f94
30 changed files with 4669 additions and 0 deletions

25
src/Route/route.ts Normal file
View File

@@ -0,0 +1,25 @@
import { createRouter, createWebHistory } from 'vue-router'
// 导入组件
import Home from '../Views/Home.vue'
import Login from '../Views/Login.vue'
const routes = [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/login',
name: 'login',
component: Login
},
]
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes
})
export default router