完成个人中心页面功能,公共组件部分调整

This commit is contained in:
2025-04-29 18:47:36 +08:00
parent ec7eb7093f
commit 09d6255bd5
13 changed files with 531 additions and 666 deletions

View File

@@ -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}`)
}