Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 用户管理 编辑修改提交后,点击新增时,显示的是刚才编辑的数据。 #18

Closed
Daisn666 opened this issue Oct 28, 2024 · 0 comments

Comments

@Daisn666
Copy link

软件版本

1.0.0

运行环境

Windows (64)

运行架构

None

重现步骤

编辑修改提交后,点击新增时,显示的是刚才编辑的数据。

期望的结果是什么?

点击新增时,表单是空数据

实际的结果是什么?

点击新增时,表单是编辑时的数据

日志记录(可选)

No response

补充说明(可选)

async function handleSubmit() { const res = await form.validateFields(); // request await executeResActions(res, operateType); window.$message?.success(t('common.updateSuccess')); closeDrawer(); getData(); }
添加:form.resetFields();
`
async function handleSubmit() {
const res = await form.validateFields();
// request
await executeResActions(res, operateType);

window.$message?.success(t('common.updateSuccess'));
closeDrawer();
form.resetFields();
getData();

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant