소스 검색

修改桌号

sunshibo 1 개월 전
부모
커밋
03a720969d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      uni_modules/uni-popup/components/uni-popup/uni-popup.vue

+ 2 - 1
uni_modules/uni-popup/components/uni-popup/uni-popup.vue

@@ -203,6 +203,7 @@
 				} = uni.getWindowInfo()
 				// #endif
 				// #ifndef MP-WEIXIN
+				const info = (typeof uni.getWindowInfo === 'function' ? uni.getWindowInfo() : uni.getSystemInfoSync()) || {}
 				const {
 					windowWidth,
 					windowHeight,
@@ -210,7 +211,7 @@
 					safeArea,
 					screenHeight,
 					safeAreaInsets
-				} = uni.getSystemInfoSync()
+				} = info
 				// #endif
 				this.popupWidth = windowWidth
 				this.popupHeight = windowHeight + (windowTop || 0)