Skip to content

Commit

Permalink
fix: prevent data clearing on FormKit component unmount (#7122)
Browse files Browse the repository at this point in the history
#### 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 组件卸载时,对应数据值也被清除的问题
```
  • Loading branch information
ruibaby authored Dec 17, 2024
1 parent 8f39266 commit 156a304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/console-src/modules/interface/themes/ThemeSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ await suspense();
:id="group"
:value="currentConfigMapGroupData || {}"
:name="group"
:preserve="true"
type="form"
@submit="handleSaveConfigMap"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const handleSaveConfigMap = async (data: object) => {
:id="group"
:value="currentConfigMapGroupData"
:name="group"
:preserve="true"
type="form"
@submit="handleSaveConfigMap"
>
Expand Down

0 comments on commit 156a304

Please sign in to comment.