diff --git a/components/tpx-bluetooth-print/tpx-bluetooth-print.vue b/components/tpx-bluetooth-print/tpx-bluetooth-print.vue index 0c75ab6..c255508 100644 --- a/components/tpx-bluetooth-print/tpx-bluetooth-print.vue +++ b/components/tpx-bluetooth-print/tpx-bluetooth-print.vue @@ -105,6 +105,7 @@ export default { }, async confirmPrint(){ this.imageUrl.map(async (url, index)=> { + url = `${url}?t=${new Date().valueOf()}` // canvas渲染的图必须修改url,否则渲染不出来 let imgRes = await this.$refs[`curCanvas${index}`][0].renderCanvasImg(url, this.paperWidth) let res = await this.$refs.curPrint.callPrint({ imgRes,