const addErrorLog = errorInfo => { if (errorInfo.status == "401" || errorInfo.status == "402") { Message.error({ content: '登陆已经过期!请您重新登陆!', duration: 120, }); } else { Message.error("内部服务器发生错误,请联系管理员!"); Message.error(errorInfo.data.message); const { statusText, status, request: { responseURL } } = errorInfo let info = { type: 'ajax', code: status, mes: statusText, url: responseURL } console.warn(`url:${responseURL},result:${statusText}`); if (!responseURL.includes('save_error_logger')) store.dispatch('addErrorLog', info) } }
var userAgent = navigator.userAgent; if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { window.open('','_self').close(); }else { window.opener = null; window.open("about:blank", "_self"); window.close(); }
修改日期 | 修改人 | 备注 |
2020-05-16 15:42:54[当前版本] | 郁冲冲 | 1.1.0 |
2020-05-16 15:42:28 | 郁冲冲 | 1.1.0 |
2020-05-16 15:39:12 | 郁冲冲 | 1.1.0 |
附件类型 | PNG |
|
|