完成个人中心页面功能,公共组件部分调整
This commit is contained in:
@@ -163,6 +163,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", resp.message)
|
||||
redirect(pathname === '/' ? '/login' : `/login?redirect=${pathname}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user