调整手动绑定样式
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user