From 5779f0116157ffd468edfddf78200b56be2a40d0 Mon Sep 17 00:00:00 2001 From: Takagi <1103069291@qq.com> Date: Mon, 14 Aug 2023 22:08:13 +0800 Subject: [PATCH] pref: allow annotations value to be empty (#4419) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement #### What this PR does / why we need it: 由于后端 annotation 的值可以为空,而前端则规定 annotation 值为必填项,因此去除前端必填属性。 #### Which issue(s) this PR fixes: Fixes #4279 #### Does this PR introduce a user-facing change? ```release-note 将元数据值更改为非必填 ``` --- console/src/components/form/AnnotationsForm.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/console/src/components/form/AnnotationsForm.vue b/console/src/components/form/AnnotationsForm.vue index 236bf2c77..ecac8aa2a 100644 --- a/console/src/components/form/AnnotationsForm.vue +++ b/console/src/components/form/AnnotationsForm.vue @@ -234,7 +234,7 @@ defineExpose({ type="text" label="Key" name="key" - validation="required|keyValidationRule" + validation="required:trim|keyValidationRule" :validation-rules="{ keyValidationRule }" :validation-messages="{ keyValidationRule: $t( @@ -242,12 +242,7 @@ defineExpose({ ), }" > - +