From 23dcd45bcc7bb053dde2e49cc968bb125b699427 Mon Sep 17 00:00:00 2001 From: yaojn Date: Thu, 30 Oct 2025 17:33:51 +0800 Subject: [PATCH] =?UTF-8?q?=20=20-=20[=E4=BF=AE=E5=A4=8D]=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=8F=9C=E5=8D=95=E8=B7=B3=E8=BD=AC=E5=90=8E?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82=20=20=20=20=20-=20[=E5=85=B3?= =?UTF-8?q?=E8=81=94]#[1543574590554112]=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=B7=B3=E8=BD=AC=E5=90=8E=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=86=8D=E6=AC=A1=E7=82=B9=E5=87=BB=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82=20http://192.168.0.96:8090/demo/rdm.html#/bug-detail/?= =?UTF-8?q?939050947543040/939050947543057/1543574590554112?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/topnav/topnav-menu.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/components/topnav/topnav-menu.vue b/src/views/components/topnav/topnav-menu.vue index a056f8a4..0a9ce5d2 100644 --- a/src/views/components/topnav/topnav-menu.vue +++ b/src/views/components/topnav/topnav-menu.vue @@ -71,7 +71,8 @@ export default { moduleId: MODULEID, home: HOME, extramenuList: [], - extramenuLoading: false + extramenuLoading: false, + selectedExtraMenuList: [] // 已选的额外菜单列表。用于在点击跳转后重置选中状态,防止第二次点击无效。 }; }, created() { @@ -117,6 +118,7 @@ export default { const id = selectedData[selectedData.length - 1].id; if (url && this.checkUrl(url)) { if (openType === 'window') { + this.selectedExtraMenuList = []; window.open(url, '_blank'); } else if (openType === 'iframe') { //清空模块id,避免选中 @@ -155,7 +157,7 @@ export default { 'Cascader', { props: { - value: [], // = selecteData + value: this.selectedExtraMenuList, // = selecteData data: options, transfer: true, clearable: false, -- Gitee