Commit 0afdfee1 by 胡悦

fix: 在响应拦截器中添加错误消息提示

1 parent 80f00eb0
......@@ -104,6 +104,8 @@ service.interceptors.response.use(
localStorage.removeItem("sessionId");
const [href] = window.location.href.split("/#/");
location.href = `${href}/#/login`;
} else {
Message.error(res.message || res.msg || "出错了,请联系管理员");
}
// Message(res.message)
break;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!