Преглед на файлове

两清三化

wulanhaote
yujk преди 3 години
родител
ревизия
83c86b598d
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. +2
    -0
      src/permission.js
  2. +3
    -1
      src/utils/request.js

+ 2
- 0
src/permission.js Целия файл

@@ -150,6 +150,8 @@ router.beforeEach((to, from, next) => {
next(`//lawEnforcement/login`)
} else if (to.path.indexOf('/sunVillage') !== -1) {
next(`/sunVillage/login`)
}else if (to.path.indexOf('/homestead/') !== -1) {
next(`/homestead/login`)
} else {
next({ path: '/' })
}


+ 3
- 1
src/utils/request.js Целия файл

@@ -90,9 +90,11 @@ service.interceptors.response.use(res => {
window.location.href = '/yinnongLogin';
} else if (window.location.href.indexOf('/sunVillage') != -1) {
window.location.href = '/sunVillage/login';
} else if (window.location.href.indexOf('/homestead/') != -1) {
window.location.href = '/homestead/login';
} else {
// 农村宅基地调查
window.location.href = '/homesteadLogin';
window.location.href = '/homestead/login';

/*window.location.href = '/index';*/
}


Зареждане…
Отказ
Запис