htc 2 주 전
부모
커밋
cf88d5e773
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 7
      pages/pdf.vue

+ 2 - 7
pages/pdf.vue

@@ -214,15 +214,10 @@
             ]
         };
 		
-		this.$nextTick(() => {
-			this.calculateScaleAndPosition();
-			this.calculatePdfContainerHeight();
-		});
+		
+		this.calculateScaleAndPosition();
 		uni.onWindowResize(() => {
 			this.calculateScaleAndPosition();
-			this.$nextTick(() => { // 确保 DOM 更新后再计算高度
-				this.calculatePdfContainerHeight();
-			});
 		});
     },
     methods: {