Browse Source

修改桌号

sunshibo 1 month ago
parent
commit
03a720969d
1 changed files with 2 additions and 1 deletions
  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)