refactor(profile): split view/container and update nav state
Some checks failed
Client CMS Check Build (NixCN CMS) TeamCity build failed
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-31 18:30:34 +08:00
parent 635b0fbb73
commit 65d493b91b
20 changed files with 173 additions and 73 deletions

View File

@@ -25,3 +25,4 @@ export const navData = {
},
],
};
export type NavData = typeof navData;

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);
});
}