feat(tabbar): 添加右键菜单过滤功能 (#5820)

This commit is contained in:
Jin Mao
2025-03-30 16:23:24 +08:00
committed by GitHub
parent dbc0b7e4a9
commit df6341f0b8
3 changed files with 43 additions and 4 deletions

View File

@@ -209,7 +209,8 @@ export function useTabbar() {
text: $t('preferences.tabbar.contextMenu.closeAll'),
},
];
return menus;
return menus.filter((item) => tabbarStore.getMenuList.includes(item.key));
};
return {