fix: 点击顶部Logo跳转到首页

This commit is contained in:
DaxPay Dev
2026-06-14 21:37:44 +08:00
parent 7104237c74
commit b4afb20a36

View File

@@ -120,6 +120,10 @@
return userStore.userInfo?.avatar ?? preferences.app.defaultAvatar;
});
function handleLogoClick() {
router.push('/');
}
async function handleLogout() {
await authStore.logout(false);
}
@@ -163,7 +167,7 @@
</script>
<template>
<BasicLayout @clear-preferences-and-logout="handleLogout">
<BasicLayout @click-logo="handleLogoClick" @clear-preferences-and-logout="handleLogout">
<template #user-dropdown>
<UserDropdown :avatar :menus :text="userStore.userInfo?.name" @logout="handleLogout" />
</template>