fix: prevent data clearing on FormKit component unmount (#7122)

#### What type of PR is this?

/kind bug
/area ui
/milestone 2.20.x

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

Prevent data clearing on FormKit component unmount

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

Fixes #7121 

#### Special notes for your reviewer:

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

```release-note
修复 FormKit 组件卸载时,对应数据值也被清除的问题
```
pull/7149/head v2.20.12
Ryan Wang 2024-12-17 15:06:08 +08:00 committed by GitHub
parent 8f39266c8c
commit 156a30496c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ await suspense();
:id="group"
:value="currentConfigMapGroupData || {}"
:name="group"
:preserve="true"
type="form"
@submit="handleSaveConfigMap"
>

View File

@ -76,6 +76,7 @@ const handleSaveConfigMap = async (data: object) => {
:id="group"
:value="currentConfigMapGroupData"
:name="group"
:preserve="true"
type="form"
@submit="handleSaveConfigMap"
>