From f6659da1b8e1d7de129c44b88803625dfc7981a5 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Thu, 27 Apr 2023 14:54:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9Eid=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iframe/index.vue | 1 + src/views/link/plugin/Save.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/iframe/index.vue b/src/views/iframe/index.vue index 2d9f9d92..e1dd005d 100644 --- a/src/views/iframe/index.vue +++ b/src/views/iframe/index.vue @@ -41,6 +41,7 @@ const handle = async (appId: string, url: string) => { watchEffect(() => { const matchedItem: any = route.matched?.[0] + console.log('iframe', matchedItem?.meta?.isApp) if (matchedItem?.meta?.isApp) { const params = route.path.split('/')?.[1]; const url = route.path.split('/').slice(2).join('/'); diff --git a/src/views/link/plugin/Save.vue b/src/views/link/plugin/Save.vue index 2ef30e93..d209d9d7 100644 --- a/src/views/link/plugin/Save.vue +++ b/src/views/link/plugin/Save.vue @@ -94,7 +94,7 @@ const loading = ref(false) const vailId = async (_: any, value: string) => { if (!props.data.id && value) { // 新增校验 const resp = await vailIdFn(value) - if (resp.success && resp.result) { + if (resp.success && resp.result && !resp.result.passed) { return Promise.reject('ID重复'); } }