Skip to content

[Bug]: useForm开启store刷新后,数据初始化了,表单草稿功能没生效 #818

@Zombie-Lin

Description

@Zombie-Lin

这是否是一个 Bug?

  • 我已经确认我要报告的是一个 Bug

这个问题是否已经存在?

  • 我已经确认这个 Issue 没有被报告过

Alova 版本

3.5.1

前端框架

React

问题描述

const {
loading,
form,
send,
updateForm,
reset
} = useForm(
(formData) => alovaInstance.Post('/users', formData),
{
initialForm: {
name: '',
email: '',
age: ''
},
id: 'draftForm',
store: true, // 开启持久化保存
resetAfterSubmiting: true // 提交后自动重置
}
)

期望的表现

No response

复现链接

No response

复现步骤

1.设置store为:true;2.输入表单内容;3.刷新表单为空。

系统信息

补充说明

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions