schema 里设置了 defaultvalue 为 null 时
调用 schema2code 会报错:
cannot convert undefined or null to object
目前绕过的办法是不用 null 值
有啥别的方法么
schema 里设置了 defaultvalue 为 null 时
调用 schema2code 会报错:
cannot convert undefined or null to object
目前绕过的办法是不用 null 值
有啥别的方法么
4***@qq.com (作者)
使用 schema2code 的时候,null 值还是挺有必要的,跟空字符串的含义是不同的
2025-02-23 21:48