feat: 用户登录

This commit is contained in:
gary 2022-04-21 21:44:58 +08:00
parent cca8a62dac
commit ed81a9055e
2 changed files with 2 additions and 3 deletions

View File

@ -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',
})
}

View File

@ -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)