From 76c45170feea9a9e74dcce56043c16331bde5c9b Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Mon, 29 Nov 2021 14:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/api.js b/src/assets/api.js index acbf6404..b666b4ea 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -22,7 +22,7 @@ const upload = (method, url, params, responseType) => { Notify.clear(); Notify.error(response.message); setTimeout(() => { - window.location.href='/login'; + window.location.href='/'; }, 2000) }else if(response.code==401){ Notify.clear(); @@ -69,7 +69,7 @@ const upload = (method, url, params, responseType) => { Notify.clear(); Notify.error(response.message); setTimeout(() => { - window.location.href='/login'; + window.location.href='/'; }, 2000) }else if(response.code==401){ Notify.clear(); @@ -141,7 +141,7 @@ const req = (method, url, params, responseType) => { Notify.clear(); Notify.error(response.message); setTimeout(() => { - window.location.href='/login'; + window.location.href='/'; }, 2000) }else if(response.code==401){ Notify.clear();