From 96d05a59b00e0b67d64a09fbc313a12f5724e1d2 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Wed, 12 Feb 2025 10:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=B0=E8=8A=B1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=A1=A3=E6=9C=8D=E5=8A=A0=E8=BD=BD=E4=B8=8D=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=AF=BC=E8=87=B4=E5=8D=B0=E8=8A=B1=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Detail/DesignPrintOperation.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/component/Detail/DesignPrintOperation.vue b/src/component/Detail/DesignPrintOperation.vue index d949626a..bee89417 100644 --- a/src/component/Detail/DesignPrintOperation.vue +++ b/src/component/Detail/DesignPrintOperation.vue @@ -330,7 +330,7 @@ export default defineComponent({ }, }, methods: { - init(){ + async init(){ this.designOpenrtion = true let designItemDetail = JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)) this.currentFullBodyView = designItemDetail.currentFullBodyView?designItemDetail.currentFullBodyView:designItemDetail.designItemUrl @@ -348,12 +348,16 @@ export default defineComponent({ if(this.$parent.exhibitionList.print)this.designOpenrtionList = JSON.parse(JSON.stringify(this.$parent.exhibitionList.print)) if(this.$parent.elementsList)this.designList = JSON.parse(JSON.stringify(this.$parent.printsList)) let skecth = new Image - skecth.onload=()=>{ - this.sketch.width = skecth.width/10+'rem' - this.sketch.height = skecth.height/10+'rem' - skecth.remove() - } skecth.src = this.current.undividedLayer || this.current.path + await new Promise((resolve, reject) => { + skecth.onload=()=>{ + this.sketch.width = skecth.width/10+'rem' + this.sketch.height = skecth.height/10+'rem' + skecth.remove() + resolve() + } + }) + if(this.exhibitionOpenrtionList.overall.length > 0){ let str = 'overall' this.exhibitionOpenrtionList[str].forEach((item,index)=>{