forked from huge/frontEnd/hugeOA

Mr Ke
2020-04-06 91d2b58b9024c358a743e0b42ff53915fb6b8e09
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() {