Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d643fe

Browse files
committed
fix: add key-field for DropTab
1 parent 0b0ae49 commit 6d643fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/layouts/components/tab/DropTabs.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { t } = useI18n()
99
function renderDropTabsLabel(option: any) {
1010
return t(`route.${String(option.name)}`, option.meta.title)
1111
}
12+
1213
function renderDropTabsIcon(option: any) {
1314
return renderIcon(option.meta.icon)!()
1415
}
@@ -26,6 +27,7 @@ function handleDropTabs(key: string, option: any) {
2627
:render-icon="renderDropTabsIcon"
2728
trigger="click"
2829
size="small"
30+
key-field="fullPath"
2931
@select="handleDropTabs"
3032
>
3133
<CommonWrapper>

0 commit comments

Comments
 (0)