feat: 用户登录
This commit is contained in:
parent
cca8a62dac
commit
ed81a9055e
|
|
@ -2,7 +2,7 @@ import request from 'utils/request'
|
|||
|
||||
export const queryUserInfo = () => {
|
||||
return request.request({
|
||||
url: '/high_city/app/api/user',
|
||||
url: '/high_city/app/api/user/detail',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,8 +50,7 @@ export const useSignLogin = () => {
|
|||
sign: signHash,
|
||||
inviteCode,
|
||||
})
|
||||
await fetchUserInfo()
|
||||
// dispatch(setUserInfo({ ...userInfo.user_info, token: userInfo.token }))
|
||||
dispatch(setUserInfo(userInfo))
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
// e.message&&toastError(e)
|
||||
|
|
|
|||
Loading…
Reference in New Issue