From 83c86b598dfeb91bd6030127f1bb9a13a279aa20 Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Fri, 27 May 2022 13:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E6=B8=85=E4=B8=89=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 2 ++ src/utils/request.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index c1dee66a..baab6d2e 100644 --- a/src/permission.js +++ b/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: '/' }) } diff --git a/src/utils/request.js b/src/utils/request.js index 324d3c18..818d0379 100644 --- a/src/utils/request.js +++ b/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';*/ }