소스 검색

宅基地注册跳转问题处理

wulanhaote
Xyq123* 2 년 전
부모
커밋
d1c69531f0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      src/permission.js

+ 3
- 0
src/permission.js 파일 보기

@@ -106,6 +106,7 @@ const whiteList = [

//宅基地
'/zjdLogin',
'/onlineHome/workbench',

//阳光村务--新
'/sunVillage_info/login', //登录
@@ -133,6 +134,7 @@ const whiteList = [
router.beforeEach((to, from, next) => {
NProgress.start()
if (getToken()) {
console.info(to)
/* has token*/
if (to.path === '/login') {
next({ path: '/' })
@@ -191,6 +193,7 @@ router.beforeEach((to, from, next) => {
}
} else {
// 没有token
console.info(to);
if (whiteList.indexOf(to.path) !== -1) {
// 在免登录白名单,直接进入
console.log(to.path)


불러오는 중...
취소
저장