From e121ae9a815119e32a0c28a77785f80847fd4893 Mon Sep 17 00:00:00 2001 From: easy <1358086367@qq.com> Date: Mon, 13 Mar 2023 16:27:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E7=B3=BB=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Relationship/components/EditDialog.vue | 20 +++++++++---------- src/views/system/Relationship/index.vue | 6 +++--- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/views/system/Relationship/components/EditDialog.vue b/src/views/system/Relationship/components/EditDialog.vue index 07750e5a..5b9bea43 100644 --- a/src/views/system/Relationship/components/EditDialog.vue +++ b/src/views/system/Relationship/components/EditDialog.vue @@ -21,7 +21,6 @@ @@ -51,12 +49,14 @@ {{ item.name }} + {{ item.name }}. + @@ -73,17 +73,14 @@ {{ item.name }} + {{ item.name }} + - + { - if (!value) return ''; + if (!value) return Promise.reject(''); + else if (value.length > 64) return Promise.reject(''); const reg = new RegExp('^[0-9a-zA-Z_\\\\-]+$'); return reg.test(value) @@ -172,7 +170,7 @@ type formType = { name: string; relation: string; objectType: string; - targetType: string; + targetType: string | undefined; description: string; id?: string; }; diff --git a/src/views/system/Relationship/index.vue b/src/views/system/Relationship/index.vue index 9dc868df..b16ecad7 100644 --- a/src/views/system/Relationship/index.vue +++ b/src/views/system/Relationship/index.vue @@ -19,7 +19,7 @@