Ver código fonte

附加生成图放大功能

zjs_project 1 ano atrás
pai
commit
53e84bf11a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/components/newBottomCom/viewMask/viewMask.vue

+ 2 - 2
src/components/newBottomCom/viewMask/viewMask.vue

@@ -569,8 +569,8 @@
 				const prompt = this.styleList[this.curStyleIndex].prompt;
 				const noPromot = this.styleList[this.curStyleIndex].negativePrompt;
 				let unit = 768 / window.screen.width;
-				this.imageWidth = window.screen.width * unit;
-				this.imageHeight = this.$parent.canvasHeight * unit;
+				this.imageWidth = parseInt((window.screen.width * unit).toFixed());
+				this.imageHeight = parseInt((this.$parent.canvasHeight * unit).toFixed());
 				// this.$parent.canvasHeight = window.screen.height - (208 * unit);
 				var parmas = {
 					negativePrompt: noPromot,