Commit 0434030f2777ee65a4255287e1842fcb0b772f87
1 parent
0daca283
fix(login): fix the problem of successful login and notify disappearing
Showing
3 changed files
with
9 additions
and
1 deletions
CHANGELOG.zh_CN.md
@@ -7,6 +7,13 @@ | @@ -7,6 +7,13 @@ | ||
7 | ### 🎫 Chores | 7 | ### 🎫 Chores |
8 | 8 | ||
9 | - 返回顶部样式调整,避免遮住其他元素 | 9 | - 返回顶部样式调整,避免遮住其他元素 |
10 | +- 升级`ant-design-vue`到`2.0.0-rc.4` | ||
11 | + | ||
12 | +### 🐛 Bug Fixes | ||
13 | + | ||
14 | +- 修复多级路由缓存导致组件渲染多次的问题 | ||
15 | +- 修复地图图表切换后消失问题 | ||
16 | +- 修复登录成功 notify 消失问题 | ||
10 | 17 | ||
11 | ## 2.0.0-rc.13 (2020-12-10) | 18 | ## 2.0.0-rc.13 (2020-12-10) |
12 | 19 |
src/store/modules/user.ts
@@ -114,7 +114,7 @@ class User extends VuexModule { | @@ -114,7 +114,7 @@ class User extends VuexModule { | ||
114 | 114 | ||
115 | // const name = FULL_PAGE_NOT_FOUND_ROUTE.name; | 115 | // const name = FULL_PAGE_NOT_FOUND_ROUTE.name; |
116 | // name && router.removeRoute(name); | 116 | // name && router.removeRoute(name); |
117 | - goHome && router.replace(PageEnum.BASE_HOME); | 117 | + goHome && (await router.replace(PageEnum.BASE_HOME)); |
118 | return userInfo; | 118 | return userInfo; |
119 | } catch (error) { | 119 | } catch (error) { |
120 | return null; | 120 | return null; |
src/views/sys/login/Login.vue