浏览代码

fix:设置水印透明度

ly 9 月之前
父节点
当前提交
11ca007ce3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/utils/zTool.js

+ 1 - 0
src/utils/zTool.js

@@ -418,6 +418,7 @@ let zTool = {
 			if(proportion>2){
 			if(proportion>2){
 				size=size*0.5
 				size=size*0.5
 			}
 			}
+			ctx.globalAlpha = 0.2;
 			ctx.font = `${size}px Arial`;
 			ctx.font = `${size}px Arial`;
 			ctx.fillStyle = 'rgb(228,233,229)';
 			ctx.fillStyle = 'rgb(228,233,229)';
 			const watermarkText = name; // 水印文本
 			const watermarkText = name; // 水印文本