提交 d85550d9 authored 作者: pengxiaohui's avatar pengxiaohui

登录态失效调至登录页面

上级 2f134263
...@@ -38,7 +38,7 @@ httpRequest.interceptors.request.use( ...@@ -38,7 +38,7 @@ httpRequest.interceptors.request.use(
httpRequest.interceptors.response.use( httpRequest.interceptors.response.use(
function(response) { function(response) {
const { data } = response const { data } = response
if (data.code === 4001 && data.message === '请重新登录') { if (data.code === 4001 && data.message === '请登录') {
// Message.error(data.msg || data.message) // Message.error(data.msg || data.message)
window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}` window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
return Promise.reject(data) return Promise.reject(data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论