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

关于编辑器上一步下一步的缓存问题 #210

Closed
sizzlecar opened this issue Apr 17, 2018 · 2 comments
Closed

关于编辑器上一步下一步的缓存问题 #210

sizzlecar opened this issue Apr 17, 2018 · 2 comments

Comments

@sizzlecar
Copy link

我在一个列表中使用了mavonEditor,列表中的每一行都可以使用mavonEditor,由于是同一个mavonEditor实例,则 A 行使用了mavonEditor进行编辑,B行再进行编辑的时候使用上一步,下一步按钮时,会出现A行编辑时的数据,请问有方法可以清空上一步下一步的缓存么?或者该如何重新实例化mavonEditor对象

@hinesboy
Copy link
Owner

通过获取mavonEditor实例$vm,主动调用 $vm.$emptyHistory() 方法可以清空历史步骤 (v2.5.4已发布)

@hinesboy hinesboy reopened this Apr 18, 2018
@sizzlecar
Copy link
Author

@hinesboy 感谢!

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

2 participants