refactor(profile): split view/container and update nav state
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
@@ -25,3 +25,4 @@ export const navData = {
|
||||
},
|
||||
],
|
||||
};
|
||||
export type NavData = typeof navData;
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user