@@ -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
this.popupWidth = windowWidth
this.popupHeight = windowHeight + (windowTop || 0)