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

fix: 修改bug

上级 c1ef4a70
...@@ -56,7 +56,10 @@ httpRequest.interceptors.response.use( ...@@ -56,7 +56,10 @@ httpRequest.interceptors.response.use(
if (status === 403) { if (status === 403) {
window.location.href = `${import.meta.env.VITE_LOGIN_URL}?rd=${encodeURIComponent(window.location.href)}` window.location.href = `${import.meta.env.VITE_LOGIN_URL}?rd=${encodeURIComponent(window.location.href)}`
} else if (status === 401) { } else if (status === 401) {
router.push('/notice') // Message.error('未授权请从新登陆')
// setTimeout(() => {
// window.location.href = `${import.meta.env.VITE_LOGIN_URL}?rd=${encodeURIComponent(window.location.href)}`
// }, 1000)
} else { } else {
Message.error(message || error.response.data) Message.error(message || error.response.data)
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论