From f5feea67a578ee2a549d64bc90c85b011f2e2160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Wed, 23 Jul 2025 17:40:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E3=80=90=E5=95=86=E5=9F=8E=E8=A3=85?= =?UTF-8?q?=E4=BF=AE=E3=80=91=E5=A4=84=E7=90=86=E7=83=AD=E5=8C=BA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E9=93=BE=E6=8E=A5=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E9=93=BE=E6=8E=A5=E8=A2=AB=E9=87=8D=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?undefined=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppLinkInput/AppLinkSelectDialog.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/AppLinkInput/AppLinkSelectDialog.vue b/src/components/AppLinkInput/AppLinkSelectDialog.vue index 63f19662e..2d4bea423 100644 --- a/src/components/AppLinkInput/AppLinkSelectDialog.vue +++ b/src/components/AppLinkInput/AppLinkSelectDialog.vue @@ -80,7 +80,8 @@ const activeAppLink = ref({} as AppLink) /** 打开弹窗 */ const dialogVisible = ref(false) const open = (link: string) => { - activeAppLink.value.path = link + // 进入页面时先重置 activeAppLink + activeAppLink.value = { name: '', path: '' } dialogVisible.value = true // 滚动到当前的链接 @@ -102,8 +103,11 @@ defineExpose({ open }) // 处理 APP 链接选中 const handleAppLinkSelected = (appLink: AppLink) => { + // 只有不同链接时才更新(避免重复触发) if (!isSameLink(appLink.path, activeAppLink.value.path)) { - activeAppLink.value = appLink + // 如果新链接的 path 为空,则沿用当前 activeAppLink 的 path + const path = appLink.path || activeAppLink.value.path + activeAppLink.value = { ...appLink, path: path } } switch (appLink.type) { case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST: -- Gitee From bb02444af1f3ab2d94e37f8a7ab8ccacdc36627e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Thu, 24 Jul 2025 16:56:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?new:=20=E3=80=90=E5=95=86=E5=9F=8E=E8=A3=85?= =?UTF-8?q?=E4=BF=AE=E3=80=91=E5=AF=BC=E8=88=AA=E6=A0=8F=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E6=B7=BB=E5=8A=A0=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NavigationBar/components/CellProperty.vue | 32 ++++++++++++++++++- .../components/mobile/NavigationBar/config.ts | 6 ++++ .../components/mobile/NavigationBar/index.vue | 7 ++-- 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue index ea0e7ca92..6c671d3f2 100644 --- a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue +++ b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue @@ -13,7 +13,7 @@