如何优化TreeGraph的卡顿问题? #5657
-
新建了干净的vue项目只用来测试G6性能。 使用treeGraph测试发现: |
Beta Was this translation helpful? Give feedback.
Answered by
zhangbaojia
Apr 18, 2024
Replies: 1 comment 2 replies
-
能给个预览地址吗?@zhangbaojia |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const graph = ref(null);
graph.value = new G6.TreeGraph({});
是因为将graph丢给vue的ref变量管理导致的,先换成shallowRef试试