|
@@ -66,7 +66,7 @@ export function useFormEvents({
|
|
|
|
|
|
// key 支持 a.b.c 的嵌套写法
|
|
// key 支持 a.b.c 的嵌套写法
|
|
const delimiter = '.';
|
|
const delimiter = '.';
|
|
- const nestKeyArray = fields.filter((item) => item.indexOf(delimiter) >= 0);
|
|
|
|
|
|
+ const nestKeyArray = fields.filter((item) => String(item).indexOf(delimiter) >= 0);
|
|
|
|
|
|
const validKeys: string[] = [];
|
|
const validKeys: string[] = [];
|
|
Object.keys(values).forEach((key) => {
|
|
Object.keys(values).forEach((key) => {
|