'admin-21.11.27:修复登录问题,感谢@jerrod,issues(#I4GIKU)'

This commit is contained in:
lyt
2021-11-27 19:31:17 +08:00
parent c5107bd3af
commit d6e5455490
3 changed files with 18 additions and 6 deletions

View File

@ -2,8 +2,17 @@
🎉🎉🔥 `vue-prev-admin` 基于 vue2.x + webpack + element ui适配手机、平板、pc 的后台开源免费模板库vue3.x 请切换 master 分支)
## 1.0.7
`2021.11.27`
- 🌟 更新 依赖更新最新版本
- 🐞 修复 登录问题 [#I4GIKU](https://gitee.com/lyt-top/vue-next-admin/issues/I4GIKU)
## 1.0.6
`2021.11.08`
- 🌟 更新 依赖更新最新版本
- 🎯 优化 目录移动 `@/views/layout` 移动 `@/layout` (可全局替换)
- 🎯 优化 eslint 语法检测问题,`@babel/eslint-parser` 替换已废弃的 `babel-eslint`,出现报错,请尝试降级 eslint

View File

@ -1,6 +1,6 @@
{
"name": "vue-prev-admin",
"version": "1.0.6",
"version": "1.0.7",
"private": true,
"description": "vue2 webpack admin template",
"author": "lyt_20201208",
@ -28,17 +28,17 @@
"vuex": "^3.6.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@vue/cli-plugin-babel": "~4.5.15",
"@vue/cli-plugin-eslint": "~4.5.15",
"@vue/cli-plugin-router": "~4.5.15",
"@vue/cli-plugin-vuex": "~4.5.15",
"@vue/cli-service": "~4.5.15",
"eslint": "^8.2.0",
"eslint-plugin-vue": "^8.0.3",
"sass": "^1.43.4",
"eslint": "^8.3.0",
"eslint-plugin-vue": "^8.1.1",
"sass": "^1.43.5",
"sass-loader": "^10.1.1",
"screenfull": "^5.2.0",
"screenfull": "^6.0.0",
"vue-template-compiler": "^2.6.14"
},
"browserslist": [

View File

@ -220,6 +220,9 @@ router.beforeEach((to, from, next) => {
next('/login');
Session.clear();
delayNProgressDone();
} else if (token && to.path === '/login') {
next('/home');
delayNProgressDone();
} else {
if (Object.keys(store.state.routesList.routesList).length <= 0) {
getRouterList(router, to, next);