|
|
@@ -28,8 +28,7 @@ export const userRegister = payload => {
|
|
|
|
|
|
|
|
|
export const userInfo = () => {
|
|
|
- return axios.get(`${USER_MODULE}`,
|
|
|
- {headers: {token: localStorage.getItem('token')}})
|
|
|
+ return axios.get(`${USER_MODULE}`)
|
|
|
.then(res => {
|
|
|
if(res.code == '400'){
|
|
|
throw new Error('个人信息获取失败!')
|