Henry Rao
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/hooks/web/useTabs.ts
|
|
|
@ -34,7 +34,7 @@ export function useTabs(_router?: Router) { |
|
|
|
|
|
|
|
function getCurrentTab() { |
|
|
|
const route = unref(currentRoute); |
|
|
|
return tabStore.getTabList.find((item) => item.path === route.path)!; |
|
|
|
return tabStore.getTabList.find((item) => item.fullPath === route.fullPath)!; |
|
|
|
} |
|
|
|
|
|
|
|
async function updateTabTitle(title: string, tab?: RouteLocationNormalized) { |
|
|
|
|