Skip to content
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框架中重复进入到Logicflow页,点击节点右键事件重复触发 #61

Closed
tongtie opened this issue Mar 9, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@tongtie
Copy link

tongtie commented Mar 9, 2021

问题描述
第一次进入到有默认数据的LogicFlow页,点击节点右键事件触发正常。
然后回退到其他页,再次进入到LogicFlow页,再次点击节点右键事件,就会多触发一次,
... 重复上述动作,每进入到LogicFlow页,右键事件触发次数多增加一次

image

环境信息描述
至少包含以下部分:

  1. 系统类型(Mac或者Windows)
    windows10和ubuntu14
  2. 浏览器类型 (chrome80 或者 IE11)
    chrome88(windows)和chrome87(ubuntu)

最简复现demo
对首页提供的vue demo,进行了修改,可以复现此bug

https://github.com/tongtie/logicflow_vue_demo.git

  1. 从首页点击LogicFlow按钮,进入到LogicFlow页
    image
  2. 在LogicFlow页,点击回退按钮,回退到首页
    image
  3. 重复上述步骤,然后点击节点属性,发现触发了多次,并报错误(如问题描述中的图片所示)

感觉是Menu中的click事件多次注册导致。
前端新手,也有可能是vue框架结合Logicflow用的不对,没有写组件销毁啥的导致,请帮忙定位下,谢谢

@towersxu towersxu added the bug Something isn't working label Mar 12, 2021
@towersxu
Copy link
Collaborator

请升级到最新版再尝试,此问题应已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants