You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
大家好。
我使用Vue3配合@antv/x6-vue-shape
在使用AntV X6过程中,发现当Vue页面切换,来回进入到画布里时
画布里的Vue节点,调用自身的onMounted方法,会成倍的增加
我创建了一个简单的演示项目:
https://github.com/songday/antvx6vue
如何复现
检查模式
Go to Graph
按钮,跳转到另外一个页面,能看到node loaded
在console打印了一次Go to Home
按钮,返回Go to Graph
按钮,跳转到另外一个页面,能看到node loaded
打印了多次Go to Home
按钮,返回Go to Graph
按钮,跳转到另外一个页面,能看到node loaded
打印了更多次Graph
页面,打印node loaded
的次数会成倍增加Edge(Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0)
和
Firefox(Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0)
都有此问题
该演示代码,均来自官方例子:
https://x6.antv.antgroup.com/tutorial/intermediate/vue
Beta Was this translation helpful? Give feedback.
All reactions