fix: await getUserInfo need await
This commit is contained in:
parent
3808f515cf
commit
f2119f3f73
@ -59,7 +59,7 @@ export const useUserStore = defineStore(
|
|||||||
const res = await _login(credentials)
|
const res = await _login(credentials)
|
||||||
console.log('登录信息', res)
|
console.log('登录信息', res)
|
||||||
toast.success('登录成功')
|
toast.success('登录成功')
|
||||||
getUserInfo()
|
await getUserInfo()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -90,7 +90,7 @@ export const useUserStore = defineStore(
|
|||||||
console.log('微信登录code', data)
|
console.log('微信登录code', data)
|
||||||
|
|
||||||
const res = await _wxLogin(data)
|
const res = await _wxLogin(data)
|
||||||
getUserInfo()
|
await getUserInfo()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user