selectweilin

Results 9 comments of selectweilin

> 目前来看, 这是v3使用proxy触发了一个bug, 但是目前还没有定位到原因 > > * 相关问题: [uniapp vue3编译到微信小程序报错 #301](https://github.com/buuing/lucky-canvas/issues/301) 那就是说现在没办法渲染网络图片是吧

那请教一下渐变颜色要怎么设置呢

![image](https://user-images.githubusercontent.com/972784/189026200-4e242ea3-c238-4cf0-9dd6-53f2f6bf8cc1.png) 大概就是这样的

现在的问题是我放本地的图片也报同样的错 `TypeError: Cannot read property 'nodeId' of undefined` 图片也无法渲染出来

> 在小程序调试基础库如果为2.24.1为正常的,高于2.24,1均为不正常的,可以通过这个调试看下 @buuing 还真是,我把基础库调到2.24.1就可以加载出图片。也是离谱。。

> 试试体验版吧, 万一体验版没问题呢 体验版指的是哪个版本?

体验版不就是用的真机上的基础库吗。真机上的基础库基本上都更新到最新的版本了

@buuing 大佬,灵异事件有啥眉目没

如果是H5模式下的话可以使用以下方式临时处理这个问题 `onMounted(() => { const obj = document.createElement("input"); obj.setAttribute("type", "file"); obj.setAttribute("id", "taroChooseImage"); obj.setAttribute("accept", "*"); obj.setAttribute( "style", "position: fixed; top: -4000px; left: -3000px; z-index: -300;" ); document.body.appendChild(obj); });` 问题的原因是Taro强制使用了 `obj.setAttribute('accept', 'image/*')`...