Skip to content

Commit

Permalink
fix(login): fix the problem of successful login and notify disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 11, 2020
1 parent 0daca28 commit 0434030
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
### 🎫 Chores

- 返回顶部样式调整,避免遮住其他元素
- 升级`ant-design-vue``2.0.0-rc.4`

### 🐛 Bug Fixes

- 修复多级路由缓存导致组件渲染多次的问题
- 修复地图图表切换后消失问题
- 修复登录成功 notify 消失问题

## 2.0.0-rc.13 (2020-12-10)

Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class User extends VuexModule {

// const name = FULL_PAGE_NOT_FOUND_ROUTE.name;
// name && router.removeRoute(name);
goHome && router.replace(PageEnum.BASE_HOME);
goHome && (await router.replace(PageEnum.BASE_HOME));
return userInfo;
} catch (error) {
return null;
Expand Down
1 change: 1 addition & 0 deletions src/views/sys/login/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
password: '123456',
// verify: undefined,
});
const formState = reactive({
loading: false,
});
Expand Down

0 comments on commit 0434030

Please sign in to comment.