From c38113fd49a04f48d630cf548ad73bd51186a722 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 9 Nov 2021 09:58:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20model=20relabel=20=E6=A3=80?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/moduleBox.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/rightBox/moduleBox.vue b/nezha-fronted/src/components/common/rightBox/moduleBox.vue index 26ac08366..937685897 100644 --- a/nezha-fronted/src/components/common/rightBox/moduleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/moduleBox.vue @@ -238,7 +238,7 @@ class="half-form-item" :label="'Source labels'" :rules="[ { required: item.action === 'replace' || item.action === 'keep' || item.action === 'drop', message: $t('validate.required'), trigger: 'change' }, - { validator: item.action === 'replace' || item.action === 'keep' || item.action === 'drop'? arrLength : '', trigger: 'change' } + { validator: item.action === 'replace' || item.action === 'keep' || item.action === 'drop'? arrLength : requirdRelabel, trigger: 'change' } ]">