mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 16:15:19 +08:00
fix: fix the problem of closing multiple tabs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user