Skip to content

Conversation

@include-all
Copy link

由于新增节点时,都是用的defaultSchema.string这个对象,导致所有的节点引用的同一个对象,新增节点就是和上一个一样,而且改变其中一个节点的默认值或者备注,另一个也会同步更新,使得无法修改,应该要深拷贝一下,当然直接{...defaultSchema.string}也可以

@giscafer giscafer merged commit 877c665 into giscafer:master Mar 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants