This commit is contained in:
zhutao
2025-10-27 15:42:57 +08:00
commit 7817c39606
44 changed files with 3881 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import {defineStore} from "pinia";
interface AccessState {
token: string,
userInfo: UserState
}
interface UserState {
nickname: string,
tel: string,
avatar: string,
wx_openid: string
}
//@ts-ignore
export const useUserStore = defineStore("app-access", {
state: (): AccessState => ({
token: '',
userInfo: {
nickname: '', //姓名
avatar: '', //头像
tel: '', //手机号
wx_openid: '',
},
}),
persist: {
enabled: true,
}
})