This commit is contained in:
dap
2025-05-13 11:32:35 +08:00
5 changed files with 21 additions and 6 deletions

View File

@@ -40,8 +40,8 @@ export function useTabs() {
await tabbarStore.toggleTabPin(tab || route);
}
async function refreshTab() {
await tabbarStore.refresh(router);
async function refreshTab(name?: string) {
await tabbarStore.refresh(name || router);
}
async function openTabInNewWindow(tab?: RouteLocationNormalized) {

View File

@@ -158,7 +158,7 @@ export function useTabbar() {
},
{
disabled: disabledRefresh,
handler: refreshTab,
handler: () => refreshTab(),
icon: RotateCw,
key: 'reload',
text: $t('preferences.tabbar.contextMenu.reload'),