mirror of https://github.com/halo-dev/halo
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
parent
8f39266c8c
commit
156a30496c
|
@ -78,6 +78,7 @@ await suspense();
|
|||
:id="group"
|
||||
:value="currentConfigMapGroupData || {}"
|
||||
:name="group"
|
||||
:preserve="true"
|
||||
type="form"
|
||||
@submit="handleSaveConfigMap"
|
||||
>
|
||||
|
|
|
@ -76,6 +76,7 @@ const handleSaveConfigMap = async (data: object) => {
|
|||
:id="group"
|
||||
:value="currentConfigMapGroupData"
|
||||
:name="group"
|
||||
:preserve="true"
|
||||
type="form"
|
||||
@submit="handleSaveConfigMap"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue