vue2-client 1.5.15 → 1.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,7 @@
9
9
  - 修复翻页后修改删除按钮仍然可用的问题
10
10
  - 修复表单不显示问题
11
11
  - afterQuery事件增加查询条件参数
12
+ - 修复跳转登录页面问题
12
13
 
13
14
  **1.5.11 - 1.5.13 -2022-12-05 @江超**
14
15
  - 优化了查询配置生成界面的样式
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -34,7 +34,7 @@ const loginGuard = (to, from, next, options) => {
34
34
  next({ path: '/login' })
35
35
  } else {
36
36
  const roles = store.getters['account/roles']
37
- if (roles.length === 0 && to.path !== '/login') {
37
+ if (roles.length === 0 && !loginIgnore.includes(to)) {
38
38
  message.warning('登录已失效,请重新登录')
39
39
  logout().finally(res => {
40
40
  next({ path: '/login' })