提交 5dfb0dc5 authored 作者: haodaking's avatar haodaking

bug fixes

上级 e07885ea
......@@ -41,11 +41,11 @@ httpRequest.interceptors.response.use(
},
function (error) {
if (error.response) {
const { status, message, code } = error.response.data
const { status, message } = error.response.data
// 未登录
if (status === 403) {
window.location.href = `${import.meta.env.VITE_LOGIN_URL}?rd=${encodeURIComponent(window.location.href)}`
} else if (status === 402 || status === 401 || (status === 400 && code === 401)) {
} else if (status === 401) {
router.push('/index')
} else {
Message.error(message || error.response.data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论