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

- 添加路由配置和基础页面组件
- 配置环境变量和全局类型定义
- 实现Pinia状态管理和axios封装
- 添加基础布局组件和全局头部
- 配置Vite构建工具和开发环境
This commit is contained in:
2025-11-15 19:26:28 +08:00
parent e243175146
commit a98eae385f
21 changed files with 507 additions and 19 deletions

8
src/router/index.ts Normal file
View File

@@ -0,0 +1,8 @@
import type {RouteRecordRaw} from "vue-router";
import HomeView from "../views/HomeView.vue";
import AboutView from "../views/AboutView.vue";
export const routes: Array<RouteRecordRaw> = [
{path: "/home", name: "HomeView", component: HomeView},
{path: "/about", name: "AboutView", component: AboutView},
];