提交 dc578c8b authored 作者: lihuihui's avatar lihuihui

修改bug

上级 2d42bed4
......@@ -37,6 +37,9 @@ httpRequest.interceptors.response.use(
function(response) {
const { data } = response
if (data.code) {
if (data.code === 4001) {
window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
}
return data.message ? Message.error(data.message) : Message.error(data.msg)
}
return data
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论