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();