saucxs / watermark-dom

watermark.js是基于DOM对象实现的BS系统的水印,确保系统保密性,安全性,降低数据泄密风险,简单轻量,支持多属性配置,动态计算水印,水印防被删(监听水印组件元素删除并重新添加,监听改变水印的属性并重新添加)。1、支持2种方式导入使用,2、水印插件-testTool(测试工具),3、内置3种全局API方法,等等。欢迎访问:
http://www.chengxinsong.cn/home
MIT License
1.35k stars 357 forks source link

vue3项目出现key未定义错误 #116

Open weixiaojian opened 11 months ago

weixiaojian commented 11 months ago

VM2710:1 Uncaught (in promise) ReferenceError: key is not defined at loadMark (eval at node_modules/watermark-dom/index.js (index.js:1:1), :1:800) at watermark.init (eval at node_modules/watermark-dom/index.js (index.js:1:1), :1:7098) at Proxy.mounted (AppMain.vue:10:15) at runtime-core.esm-bundler.js:2739:40 at callWithErrorHandling (runtime-core.esm-bundler.js:157:22) at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:166:21) at hook.weh.hook.weh (runtime-core.esm-bundler.js:2713:29) at flushPostFlushCbs (runtime-core.esm-bundler.js:343:32) at flushJobs (runtime-core.esm-bundler.js:397:9)

DragonGoBC commented 7 months ago

我也出现了这个问题,请问怎么解决了

weixiaojian commented 7 months ago

后面用watermark.js来实现了 watermark.zip

xiaohe0601 commented 2 months ago

可以试试 watermark-lite