Commit 4f36424a by caoyanzhi

update: 登录超时跳转到登录页

parent a0ad6bde
......@@ -43,6 +43,10 @@ const request = (opt, params) => {
message: resp.message || '未知错误',
type: 'warning'
});
if (resp.code == 401) {
origin = origin.indexOf('localhost') >= 0 || origin.indexOf('192.168') >= 0 ? 'https://www.gicdev.com' : origin;
window.location.href = `${origin}/operation-platform/#/`;
}
return reject(resp);
}
resolve(resp);
......
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