From 04decd7050573a0b0560d9e7a016a5aa309fac3a Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Thu, 7 Nov 2024 17:54:06 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=A7=A3=E5=86=B3=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=AF=BC=E8=87=B4=E5=85=A8=E9=83=A8=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AppLinkInput/AppLinkSelectDialog.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue b/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue index 762ee96..683a013 100644 --- a/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue +++ b/yudao-admin-vue3/src/components/AppLinkInput/AppLinkSelectDialog.vue @@ -24,7 +24,7 @@ :content="appLink.path" placement="bottom" :show-after="300"> {{ appLink.name }} @@ -109,9 +109,14 @@ // 处理 APP 链接选中 const handleAppLinkSelected = (appLink : AppLink) => { - if (!isSameLink(appLink.path, activeAppLink.value.path)) { - activeAppLink.value = appLink - console.log(activeAppLink.value,activeAppLink.value.path,"activeAppLink.value") + if(!appLink.path.includes('/pages/index/page')){ + if (!isSameLink(appLink.path, activeAppLink.value.path)) { + activeAppLink.value = appLink + // console.log(activeAppLink.value,activeAppLink.value.path,"activeAppLink.value") + } + }else{ + activeAppLink.value.path = appLink.path + console.log(activeAppLink.value.path,"activeAppLink.value.path") } switch (appLink.type) { case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST: