提交 6f913194 authored 作者: lihuihui's avatar lihuihui

修改登录

上级 c069af20
...@@ -45,6 +45,9 @@ httpRequest.interceptors.response.use( ...@@ -45,6 +45,9 @@ httpRequest.interceptors.response.use(
} }
return Promise.reject(data) return Promise.reject(data)
} }
if (data.mag === '请先登录') {
window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
}
return data return data
}, },
function(error) { function(error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论