bugfix(router): redirect to /workspaces if user is authenticated, otherwise redirect to /auth route + rename /login -> /auth

This commit is contained in:
2026-03-13 02:47:36 +08:00
parent 7e378a92f8
commit 3948505a30
5 changed files with 13 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ export default function Profile() {
const data = await getUserProfile()
setUser(data)
} catch (error) {
navigate("/login")
navigate("/auth")
} finally {
setIsLoading(false)
}