fix: 移除用户菜单中的文档/GitHub/问题与帮助,切换账户改用SwapHoriz图标

This commit is contained in:
小蟑螂
2026-03-27 22:24:36 +08:00
parent e9f6a3b8f5
commit ab7e74c582
@@ -6,7 +6,7 @@ import { computed, onMounted, ref, watch } from 'vue';
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
import { useWatermark } from '@vben/hooks';
import { BookOpenText, CircleHelp, MdiGithub } from '@vben/icons';
import { SwapHoriz, MdiGithub } from '@vben/icons';
import {
BasicLayout,
LockScreen,
@@ -80,41 +80,11 @@ const menus = computed(() => {
handler: () => {
switchAccountModalRef.value?.open();
},
icon: MdiGithub, // 临时使用现有图标
icon: SwapHoriz,
text: '切换账户',
});
}
menuItems.push(
{
handler: () => {
openWindow(VBEN_DOC_URL, {
target: '_blank',
});
},
icon: BookOpenText,
text: $t('ui.widgets.document'),
},
{
handler: () => {
openWindow(VBEN_GITHUB_URL, {
target: '_blank',
});
},
icon: MdiGithub,
text: 'GitHub',
},
{
handler: () => {
openWindow(`${VBEN_GITHUB_URL}/issues`, {
target: '_blank',
});
},
icon: CircleHelp,
text: $t('ui.widgets.qa'),
},
);
return menuItems;
});