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

水印remove问题 #109

Open
A-Ning-a opened this issue Sep 26, 2022 · 1 comment
Open

水印remove问题 #109

A-Ning-a opened this issue Sep 26, 2022 · 1 comment

Comments

@A-Ning-a
Copy link

A-Ning-a commented Sep 26, 2022

问题:vue 路由跳转 compoment 销毁前remove掉水印,新的页面还是会存在水印。
解决:看源码没看出问题。如果既想保留禁止删除水印功能又想正常remove掉,可以在remove之前重新init一下,重新init的时候保留原来配置的基础上,需要新加一个配置:monitor: false,如下:

const watermarkOptions = {
  // ......
}
watermark.init({ ...watermarkOptions, monitor: false })
watermark.remove();
@xiaofanku
Copy link

vue.js 2中无法移除水印!!

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