Commit cb66f174 authored by wuhao's avatar wuhao 🎯

asd

parent 69eb3fb3
Pipeline #3441 passed with stages
in 3 minutes and 9 seconds
...@@ -106,7 +106,7 @@ request.interceptors.response.use(async (response, options) => { ...@@ -106,7 +106,7 @@ request.interceptors.response.use(async (response, options) => {
// 详情返回的response处理 // 详情返回的response处理
if (data?.code != "0000") { if (data?.code != "0000") {
message.destroy(); message.destroy();
message.warn(data?.msg); message.error(data?.msg);
if (data?.code == "0001" && window.location.href.indexOf("login") == -1) { if (data?.code == "0001" && window.location.href.indexOf("login") == -1) {
localStorage.clear(); localStorage.clear();
history.replace("/user/login"); history.replace("/user/login");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment