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

distanceTool.undo() error #1130

Closed
whiteMelody opened this issue May 27, 2020 · 2 comments
Closed

distanceTool.undo() error #1130

whiteMelody opened this issue May 27, 2020 · 2 comments
Labels

Comments

@whiteMelody
Copy link

maptalks v0.42.0

distanceTool.undo()
vue.esm.js?a026:1897 TypeError: Cannot read property 'slice' of undefined
at t.undo (maptalks.min.js:6)
at VueComponent.repeal (Tools.vue?e44b:1054)
at invokeWithErrorHandling (vue.esm.js?a026:1863)
at HTMLDivElement.invoker (vue.esm.js?a026:2188)
at HTMLDivElement.original._wrapper (vue.esm.js?a026:7565)

内部项目,暂时无法提供地址

@fuzhenn
Copy link
Member

fuzhenn commented May 27, 2020

reproduction:
https://codepen.io/whitemelody/pen/qBOGmvz

@fuzhenn fuzhenn added the bug label May 27, 2020
@fuzhenn
Copy link
Member

fuzhenn commented May 27, 2020

结束绘制后点undo会报错,调用undo时需要判断是否已经结束绘制即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants