uu
This commit is contained in:
parent
ca2d3aab31
commit
f2face931c
@ -105,6 +105,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async confirmPrint(){
|
async confirmPrint(){
|
||||||
this.imageUrl.map(async (url, index)=> {
|
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 imgRes = await this.$refs[`curCanvas${index}`][0].renderCanvasImg(url, this.paperWidth)
|
||||||
let res = await this.$refs.curPrint.callPrint({
|
let res = await this.$refs.curPrint.callPrint({
|
||||||
imgRes,
|
imgRes,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user