🎨 update login logic

This commit is contained in:
landaiqing
2024-11-05 17:27:05 +08:00
parent c0269dfa5a
commit 462818ff9d
19 changed files with 117 additions and 157 deletions

View File

@@ -6,20 +6,12 @@ export const useAuthStore = defineStore(
'user',
() => {
const user: any = reactive({
accessToken: '',
access_token: '',
uid: '',
refreshToken: '',
expiresAt: 0,
userInfo: {
username: '',
nickname: '',
email: '',
phone: '',
avatar: '',
gender: '',
status: '',
created_at: '',
},
username: '',
nickname: '',
avatar: '',
status: '',
});
return {