调整手动绑定样式

This commit is contained in:
2024-12-24 17:33:07 +08:00
parent b3358ef4ec
commit 4ecf443f89
6 changed files with 108 additions and 15 deletions

View File

@@ -225,17 +225,8 @@ export const wxModal = (data) => {
}
export const getPixelRatio = () => {
let pixelRatio = 0
wx.getSystemInfo({
success: function (res) {
pixelRatio = res.pixelRatio
},
fail: function () {
pixelRatio = 0
}
})
return pixelRatio
export const getPixelRatio = () => {
return wx.getSystemInfoSync()?. pixelRatio
}