fix: 修复多tab带参数匹配不正确的bug (#1482)

This commit is contained in:
Henry Rao 2021-12-18 22:27:28 +08:00 committed by GitHub
parent 54ea44cdad
commit aab6b4f393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export function useTabs(_router?: Router) {
function getCurrentTab() { function getCurrentTab() {
const route = unref(currentRoute); 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) { async function updateTabTitle(title: string, tab?: RouteLocationNormalized) {