未验证 提交 edede25c 编写于 作者: P Partoo 提交者: GitHub

fix: 修复TypeError: item.indexOf is not a function报错 (#2611)

上级 6da30ede
......@@ -66,7 +66,7 @@ export function useFormEvents({
// key 支持 a.b.c 的嵌套写法
const delimiter = '.';
const nestKeyArray = fields.filter((item) => item.indexOf(delimiter) >= 0);
const nestKeyArray = fields.filter((item) => String(item).indexOf(delimiter) >= 0);
const validKeys: string[] = [];
Object.keys(values).forEach((key) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册