新增用电查询echarts和导出功能
This commit is contained in:
@@ -220,3 +220,16 @@ export const wxModal = (data) => {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export const getPixelRatio = () => {
|
||||
let pixelRatio = 0
|
||||
wx.getSystemInfo({
|
||||
success: function (res) {
|
||||
pixelRatio = res.pixelRatio
|
||||
},
|
||||
fail: function () {
|
||||
pixelRatio = 0
|
||||
}
|
||||
})
|
||||
return pixelRatio
|
||||
}
|
||||
|
Reference in New Issue
Block a user