修复认证循环重定向问题

This commit is contained in:
2025-05-12 10:58:17 +08:00
parent ea211e85a9
commit 52c0184482
4 changed files with 50 additions and 45 deletions

View File

@@ -174,6 +174,7 @@ async function postCall<R = undefined>(rawResp: Promise<ApiResponse<R>>) {
].some(item => item.test(pathname))
if (match && !resp.success && resp.status === 401) {
console.log('🚗🚗🚗🚗🚗 非正常重定向 🚗🚗🚗🚗🚗')
redirect('/login?force=true')
}