fix: resolve issue with secret input saving additional data (#6196)

#### What type of PR is this?

/kind bug
/area ui
/milestone 2.17.x

#### What this PR does / why we need it:

修复 Secret Input 保存之后会多出 Secret Form 中数据的问题。

#### Which issue(s) this PR fixes:

Fixes #6193 

#### Special notes for your reviewer:

测试方式:

1. 在保存 Secret 的表单选项前,打开一次编辑 Secret 的对话框。
2. 保存数据,检查内容是否多出了其他数据。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/6220/head
Ryan Wang 2024-06-30 00:35:21 +08:00 committed by GitHub
parent d2a03dc849
commit bae53f59ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ function onSubmit(data: SecretFormState) {
type="form"
:model-value="defaultValue"
name="secret-form"
ignore
:config="{ validationVisibility: 'submit' }"
@submit="onSubmit"
>