修复认证循环重定向问题
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user