对接后端
This commit is contained in:
parent
b6718315db
commit
0fab567259
|
@ -51,6 +51,7 @@ const userStore = useUserStore()
|
|||
onMounted(async () => {
|
||||
const token = localStorage.getItem('token')
|
||||
if (token && !userStore.userInfo) {
|
||||
userStore.setToken(token)
|
||||
await userStore.getUserInfo()
|
||||
}
|
||||
})
|
||||
|
|
|
@ -294,14 +294,15 @@ const handleLogin = async () => {
|
|||
switch (activeTab.value) {
|
||||
case 'account':
|
||||
formRef = accountFormRef.value
|
||||
formData = { ...accountForm, activeTab: activeTab.value };
|
||||
formData = { ...accountForm, activeTab: activeTab.value }
|
||||
break
|
||||
case 'phone':
|
||||
formRef = phoneFormRef.value
|
||||
formData = { ...phoneForm, activeTab: activeTab.value };
|
||||
formData = { ...phoneForm, activeTab: activeTab.value }
|
||||
break
|
||||
case 'email':
|
||||
formRef = emailFormRef.value
|
||||
formData = { ...emailForm, activeTab: activeTab.value };
|
||||
formData = { ...emailForm, activeTab: activeTab.value }
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue