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

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

@@ -30,6 +30,8 @@ export async function middleware(request: NextRequest) {
}
}
catch (error) {
console.log(error)
console.log("redirect!!!!!!!!!")
return NextResponse.redirect(`${request.nextUrl.origin}/login?redirect=${request.nextUrl.pathname}`)
}
}