web-class-frontend/app/stores/user.ts

15 lines
283 B
TypeScript
Raw Normal View History

2025-04-23 17:43:14 +08:00
export interface UserState {
userId: string;
userName: string;
userEmail: string;
userAvatar: string;
}
export const useUserStore = defineStore('User', {
state: (): UserState => ({
userId: '',
userName: '李晨鑫',
userEmail: '',
userAvatar: '',
}),
});