Skip to content

如何优化TreeGraph的卡顿问题? #5657

Closed Answered by zhangbaojia
zhangbaojia asked this question in Q&A
Discussion options

You must be logged in to vote

const graph = ref(null);
graph.value = new G6.TreeGraph({});

是因为将graph丢给vue的ref变量管理导致的,先换成shallowRef试试

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zhangbaojia
Comment options

@zhangbaojia
Comment options

Answer selected by zhangbaojia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants