fix: fix the problem of closing multiple tabs

This commit is contained in:
vben
2020-11-01 12:27:15 +08:00
parent 4c658f4868
commit 275ad9f14e
4 changed files with 5 additions and 11 deletions

View File

@@ -312,10 +312,6 @@
}
}
&-lm {
display: flex;
}
&__logo {
padding: 0 10px;
}
@@ -333,7 +329,8 @@
display: flex;
align-items: center;
height: @header-height;
font-size: 1.1em;
padding: 0 2px;
font-size: 1.2em;
cursor: pointer;
}

View File

@@ -233,9 +233,9 @@ export function closeTab(closedTab: TabItem | AppRouteRecordRaw) {
const page = unref(getTabsState)[index - 1];
const { params, path, query } = page;
toObj = {
params,
params: params || {},
path,
query,
query: query || {},
};
}
const route = (unref(currentRoute) as unknown) as AppRouteRecordRaw;