Skip to content

Commit

Permalink
fix(权限信息): 登录成功后菜单渲染逻辑优化
Browse files Browse the repository at this point in the history
登录成功后 菜单渲染使用接口/authorize/me获取权限信息为准

re #211
  • Loading branch information
Lind-pro committed Sep 24, 2020
1 parent 4d89d9a commit 4d69547
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const UserModel: UserModelType = {
*fetchCurrent(_, { call, put }) {
const response = yield call(queryCurrent);
if (response) {
localStorage.setItem('hsweb-autz', JSON.stringify(response.result));
yield put({
type: 'saveCurrentUser',
payload: response.result.user,
Expand Down

0 comments on commit 4d69547

Please sign in to comment.