未验证 提交 a1b9bbc2 编写于 作者: Z ZhangZhiChao 提交者: GitHub

fix: 重置表单时移除URL中的参数 (#2559)

上级 64d6fece
......@@ -76,7 +76,12 @@ export function useFormValues({
}
// Remove spaces
if (isString(value)) {
value = value.trim();
// remove params from URL
if(value === '') {
value = undefined;
}else {
value = value.trim();
}
}
if (!tryDeconstructArray(key, value, res) && !tryDeconstructObject(key, value, res)) {
// 没有解构成功的,按原样赋值
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册