feat: support to refresh the tab page by route name (#6153)

Co-authored-by: anyup <anyupxing@163.com>
This commit is contained in:
anyup
2025-05-10 22:33:31 +08:00
committed by GitHub
parent 90625782c0
commit 9e67929ee7
2 changed files with 18 additions and 3 deletions

View File

@@ -41,8 +41,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) {