forked from huge/frontEnd/hugeOA

1
liuwh
2020-04-06 12d561aea1143eae863d80edebf8b4cbe3cc85df
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() {