From 769bde8a86d8c92bd5b730cc658eedccee0c11a3 Mon Sep 17 00:00:00 2001 From: zzl <961867786@qq.com> Date: Sun, 25 Jun 2023 16:49:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 65a7b305..3432e81d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -73,8 +73,7 @@ service.interceptors.response.use(res => { store.dispatch('LogOut').then(() => { try { let loginUrl = Cookies.get("_Login_url"); - if(loginUrl && loginUrl.indexOf("onlineHomeLogin") !== -1) - { + if(loginUrl && loginUrl.indexOf("onlineHomeLogin") !== -1) { window.location.href = loginUrl; return; } @@ -92,10 +91,11 @@ service.interceptors.response.use(res => { window.location.href = '/homesteadLogin'; return; } + /* 已取消此页面 if (window.location.href.indexOf('/onlineHome') != -1) { window.location.href = '/zjdLogin'; return; - } + }*/ if (window.location.href.indexOf('/yinnong') != -1) { window.location.href = '/yinnongLogin'; return; @@ -104,10 +104,6 @@ service.interceptors.response.use(res => { window.location.href = '/sunVillage_info/login'; return; } - if (window.location.href.indexOf('/sunVillage') != -1) { - window.location.href = '/sunVillage/login'; - return; - } if (window.location.href.indexOf('/homestead/') != -1) { window.location.href = '/homestead/login'; return;