We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 722382f commit 3e1067fCopy full SHA for 3e1067f
web/src/view/layout/aside/historyComponent/history.vue
@@ -5,7 +5,7 @@
5
:closable="!(historys.length === 1 && $route.name === defaultRouter)"
6
type="card"
7
@contextmenu.prevent="openContextMenu($event)"
8
- @tab-change="changeTab"
+ @tab-click="changeTab"
9
@tab-remove="removeTab"
10
>
11
<el-tab-pane
@@ -209,7 +209,9 @@ const setTab = (route) => {
209
210
const historyMap = ref({})
211
212
-const changeTab = (name) => {
+const changeTab = (TabsPaneContext) => {
213
+ const name = TabsPaneContext?.props?.name
214
+ if (!name) return
215
const tab = historyMap.value[name]
216
router.push({
217
name: tab.name,
0 commit comments