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

功能执行器Executor无法自动关闭当前功能 #32

Open
XiaofengZeng opened this issue Mar 31, 2022 · 0 comments
Open

功能执行器Executor无法自动关闭当前功能 #32

XiaofengZeng opened this issue Mar 31, 2022 · 0 comments

Comments

@XiaofengZeng
Copy link
Owner

description:

当前系统的模块控制器中的mixin功能执行器Executor没有实现触发一个功能时将原本的功能关闭,当点击其他功能之外的功能按钮(如当前功能是测距,点击的功能是测面积),则会不生效

speculation:
使用watch监听shutdownList的Vuex状态,当点击其他功能之外的功能按钮,会先执行shutdown方法再执行execute方法,但实际上当调用shutdown不会立即执行watch的回调方法,而是当execute方法执行之后再执行watch的回调方法

question:

  1. 是否能够处理watch的回调函数的执行顺序?
  2. 会不会单纯只有测距和测面积之间的功能切换才会存在该问题?(因为用的是同一个mixin -> DrawingHelper)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant