src/pages/login/login.jsx
@@ -57,7 +57,9 @@ // 将token放入缓存 window.localStorage.setItem('token', res.token); window.localStorage.setItem('loginUser', JSON.stringify(res)); //登录的用户信息 // 获取登录用户的菜单权限 fetch({ url: `api/resource/getResource`, }).then(res => { @@ -68,8 +70,6 @@ this.props.history.push({ pathname: "/index" }); } }) } render() {