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