refactor(profile): split view/container and update nav state

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-31 18:30:34 +08:00
committed by Asai Neko
parent ff10fe10ce
commit 7ad479bc87
20 changed files with 173 additions and 73 deletions

View File

@@ -44,9 +44,9 @@ export async function doRefreshToken(refreshToken: string): Promise<ServiceAuthT
return data?.data;
}
export function logout(message: string = 'Logged out') {
export function logout(message: string = '已登出') {
clearTokens();
void router.navigate({ to: '/authorize' }).then(() => {
toast.error(message);
toast.info(message);
});
}