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 8794696 commit 901c891Copy full SHA for 901c891
src/components/TagsView/src/TagsView.vue
@@ -210,13 +210,14 @@ const isActive = (route: RouteLocationNormalizedLoaded): boolean => {
210
// 所有右键菜单组件的元素
211
const itemRefs = useTemplateRefsList<ComponentRef<typeof ContextMenu & ContextMenuExpose>>()
212
213
-// 右键菜单装填改变的时候
+// 右键菜单状态改变的时候
214
const visibleChange = (visible: boolean, tagItem: RouteLocationNormalizedLoaded) => {
215
if (visible) {
216
for (const v of unref(itemRefs)) {
217
const elDropdownMenuRef = v.elDropdownMenuRef
218
if (tagItem.fullPath !== v.tagItem.fullPath) {
219
elDropdownMenuRef?.handleClose()
220
+ setSelectTag(tagItem)
221
}
222
223
0 commit comments