bc89b078 by lihua

接口401时提醒,退出登录

1 parent 55518aca
......@@ -151,7 +151,7 @@ service.interceptors.response.use(
switch (error.response.status) {
case 400:
let status = error.response.data.status;
if (status == '402' || status == '403') {
if (status == '401' || status == '402' || status == '403') {
ElMessage({
message: error.response.data.msg,
type: "error",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!