BaseCloud
BaseCloud
  • 发布:2020-03-25 12:43
  • 更新:2020-03-25 17:39
  • 阅读:1064

【报Bug】明显的BUG快修复一下!!

分类:uni-app

审查元素canvas的宽高是有的,但是你怎么把它设置了一个width=“0”,导致抛出异常。
新版本(2.6.5 20200314)存在的问题,老版本没这个问题。

index.umd.min.js?1c31:1 [system] DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.  
    at VueComponent._resize (webpack-internal:///./node_modules/@dcloudio/uni-h5/dist/index.umd.min.js:1:410267)  
    at invokeWithErrorHandling (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:1864:26)  
    at VueComponent.invoker (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:2189:14)  
    at invokeWithErrorHandling (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:1864:26)  
    at VueComponent.Vue.$emit (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:3933:9)  
    at VueComponent.handler (webpack-internal:///./node_modules/@dcloudio/uni-h5/dist/index.umd.min.js:1:124793)  
    at Watcher.run (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:4619:19)  
    at flushSchedulerQueue (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:4361:13)  
    at Array.eval (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:1990:12)  
    at flushCallbacks (webpack-internal:///./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js:1916:14)

2020-03-25 12:43 负责人:无 分享
已邀请:
BaseCloud

BaseCloud (作者) - BaseCloud是一套基于uniapp、uniCloud、uni-id的全栈开发框架,不依赖任何第三方框架,极度精简轻巧。

APP和H5都存在这样的问题

DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

试一下2.6.6-alpha

该问题目前已经被锁定, 无法添加新回复