Skip to content

Commit 0434030

Browse files
committed
fix(login): fix the problem of successful login and notify disappearing
1 parent 0daca28 commit 0434030

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.zh_CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
### 🎫 Chores
88

99
- 返回顶部样式调整,避免遮住其他元素
10+
- 升级`ant-design-vue``2.0.0-rc.4`
11+
12+
### 🐛 Bug Fixes
13+
14+
- 修复多级路由缓存导致组件渲染多次的问题
15+
- 修复地图图表切换后消失问题
16+
- 修复登录成功 notify 消失问题
1017

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

src/store/modules/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class User extends VuexModule {
114114

115115
// const name = FULL_PAGE_NOT_FOUND_ROUTE.name;
116116
// name && router.removeRoute(name);
117-
goHome && router.replace(PageEnum.BASE_HOME);
117+
goHome && (await router.replace(PageEnum.BASE_HOME));
118118
return userInfo;
119119
} catch (error) {
120120
return null;

src/views/sys/login/Login.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
password: '123456',
100100
// verify: undefined,
101101
});
102+
102103
const formState = reactive({
103104
loading: false,
104105
});

0 commit comments

Comments
 (0)