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: