提交 a89e8766 编写于 作者: H hdx

test(canvas): 简化逻辑

上级 319a27e4
......@@ -114,10 +114,7 @@
this.testToBlobResult = (blob.size > 0 && blob.type == 'image/jpeg')
}, 'image/jpeg', 0.95);
// #endif
// #ifdef APP-IOS || APP-HARMONY || WEB || MP
this.testToDataURLResult = this.canvasContext!.toDataURL().startsWith('data:image/png;base64')
// #endif
// #ifdef APP-ANDROID
// #ifdef APP || WEB || MP
setTimeout(() => {
this.testToDataURLResult = this.canvasContext!.toDataURL().startsWith('data:image/png;base64')
}, 50)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册