-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用JSON导入的节点 无法使用自定义工具 #2960
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
函数是无法序列化的,可以看下我这种解决方案 https://codesandbox.io/s/serene-darkness-zhgw55?file=/src/App.vue |
谢谢,Demo里确实解决问题了,我继续吸收一下 |
工具中如果有一些函数之类的无法序列化的属性,建议不要保存到服务端,可以本地保存,按照 @Alimjan2013 的思路,等节点渲染之后,再来添加工具。 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
问题描述
用JSON导入的节点 无法使用自定义工具
重现链接
https://codesandbox.io/s/funny-sunset-kes99t?file=/src/App.vue
重现步骤
1.新增多个节点
2.点击节点上的按钮(会有相应反应)
2.导出节点为json文件,并自动下载
3.导入下载的json 文件
4.点击节点上的按钮(没有任何反应)
预期行为
我期望看到,导入进来的节点也可以正常使用
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: