|
@@ -410,7 +410,7 @@ export default {
|
|
|
var height = res[0].height
|
|
var height = res[0].height
|
|
|
if (!width || !height) return
|
|
if (!width || !height) return
|
|
|
|
|
|
|
|
- var pixelRatio = uni.getSystemInfoSync().pixelRatio || 2
|
|
|
|
|
|
|
+ var pixelRatio = uni.getWindowInfo().pixelRatio || 2
|
|
|
|
|
|
|
|
canvas.width = width * pixelRatio
|
|
canvas.width = width * pixelRatio
|
|
|
canvas.height = height * pixelRatio
|
|
canvas.height = height * pixelRatio
|
|
@@ -482,7 +482,7 @@ export default {
|
|
|
var height = res[0].height
|
|
var height = res[0].height
|
|
|
if (!width || !height) return
|
|
if (!width || !height) return
|
|
|
|
|
|
|
|
- var pixelRatio = uni.getSystemInfoSync().pixelRatio || 2
|
|
|
|
|
|
|
+ var pixelRatio = uni.getWindowInfo().pixelRatio || 2
|
|
|
canvas.width = width * pixelRatio
|
|
canvas.width = width * pixelRatio
|
|
|
canvas.height = height * pixelRatio
|
|
canvas.height = height * pixelRatio
|
|
|
|
|
|