【更新】优化前端水印组件代码格式

pull/108/MERGE
xiaonuobase 2 years ago
parent 37ef2d0427
commit 82099e7c9c

@ -52,7 +52,7 @@ export const watermark = {
observer.disconnect()
}
const wmInstance = document.body.querySelector('.watermark')
if (!wmInstance || (wmInstance.getAttribute('style') !== styleStr)) {
if (!wmInstance || wmInstance.getAttribute('style') !== styleStr) {
//如果标签在,只修改了属性,重新赋值属性
if (wmInstance) {
// 避免一直触发

Loading…
Cancel
Save