reactor:osName 的获取,从 getSystemInfoSync 迁移到 getDeviceInfo

reactor:pixelRatio/windowHeight/windowWidth 的获取,从 getSystemInfoSync 迁移到 getWindowInfo
This commit is contained in:
YunaiV
2025-04-29 20:13:18 +08:00
parent 04bb5e65d3
commit 82aada5ecd
8 changed files with 21 additions and 22 deletions
@@ -432,7 +432,7 @@
mounted() {
// #ifdef APP-NVUE
const res = uni.getSystemInfoSync();
const res = uni.getWindowInfo();
this.fixNvueBug = {
top: res.windowHeight / 2,
left: res.windowWidth / 2
@@ -473,7 +473,7 @@
right.setDate(this.$refs.right.nowDate.fullDate)
},
platform() {
const systemInfo = uni.getSystemInfoSync()
const systemInfo = uni.getWindowInfo()
this.isPhone = systemInfo.windowWidth <= 500
this.windowWidth = systemInfo.windowWidth
},