Skip to content

Commit

Permalink
fix(layouts): 🐛 [layouts] 修复标签关闭跳转问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Nov 4, 2022
1 parent 55087d8 commit efb52da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useTabsChange = (multiTabs: Ref<MultiTabsType[]>) => {
const item = multiTabs.value.findIndex((i) => setTabPaneKey(i) === setTabPaneKey(e));
const tabsLength = multiTabs.value.length;
let value, toRoute;
if (multiTabs.value[item].name === e.name) {
if (multiTabs.value[item].name === route.name) {
if (item === tabsLength - 1) {
value = multiTabs.value[item - 1];
} else {
Expand Down

0 comments on commit efb52da

Please sign in to comment.