-
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
vue 节点数据缓存问题 #4054
Comments
这个
这里出现重复,原因可能是,你在dnd操作过程中clone的时候,id没有变化。导致重复了。 |
@lloydzhou vue-router页面是是走缓存的,但是切换query,就会触发mount,就是mount多少次,拖拽新节点,就会重复多少次。是否会添加onUnmounted,是什么时候更新 |
我感觉还是有一点问题: |
@lloydzhou 核心代码就是这样,拖拽到画布,每次mount,之前都会重复节点 |
#4064 (comment) @lloydzhou 麻烦也看看,每次mount也报port id重复问题 |
想问一下这个问题解决了吗? |
没有,热更新还是经常报错 @yuxinerdaluobo |
Describe the bug
const items = reactive<{ [key: string]: any }>({})
以上代码,在router 页面缓存的情况下,
我用dnd跟@antv/x6-vue-shape结合,这里items 在 mount的时候没有清除,每次都把之前的累计进来,导致我拖拽节点,会赋值几个。
能不能提供一个方法,可以清除这个变量数据
1
The text was updated successfully, but these errors were encountered: