feat: 初始化前端项目基础架构
- 添加路由配置和基础页面组件 - 配置环境变量和全局类型定义 - 实现Pinia状态管理和axios封装 - 添加基础布局组件和全局头部 - 配置Vite构建工具和开发环境
This commit is contained in:
11
src/store/user.ts
Normal file
11
src/store/user.ts
Normal 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: {},
|
||||
});
|
||||
Reference in New Issue
Block a user