This commit is contained in:
aihe 2024-06-26 00:21:43 +08:00
parent 6452e107ce
commit 1717b647f1

View File

@ -40,7 +40,7 @@
</view> </view>
</tpx-dialog> </tpx-dialog>
<view v-for="(url, index) in imageUrl"> <view v-for="(url, index) in canvImages">
<create-image-data-bycanvas :ref="`curCanvas${index}`"></create-image-data-bycanvas> <create-image-data-bycanvas :ref="`curCanvas${index}`"></create-image-data-bycanvas>
</view> </view>
@ -57,6 +57,10 @@ export default {
}, },
computed: { computed: {
// !!!注意 canvas预览图 必须用不同变量,否则获取不到imgdata
canvImages(){
return [...this.imageUrl]
}
}, },
components: { components: {
RenderTemplate, RenderTemplate, CreateImageDataBycanvas RenderTemplate, RenderTemplate, CreateImageDataBycanvas