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

0
src/store/index.ts Normal file
View File

11
src/store/user.ts Normal file
View File

@@ -0,0 +1,11 @@
import { defineStore } from "pinia";
import ACCESS_ENUM from "../access/accessEnum";
export const useUserStore = defineStore("user", {
state: () => ({
loginUser: {
userName: "未登录",
userRole: ACCESS_ENUM.NOT_LOGIN,
},
}),
actions: {},
});