ikuaitu/vue-fabric-editor

undo redo bug

Closed this issue · 3 comments

Describe the bug
你好这个撤销和重做测试下来还是有bug比如移动画布上的一个元素就会存在撤销不了的情况

bug

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

我删掉,再撤销,再删除,然后再撤销就出不来了

可以参考下 大佬的 PR #521 对错误进行了修正,后边会合并到分支。

#521 已合并到主分支