From 7f7acfea0c8292a37f5deb7ba8609809adc65147 Mon Sep 17 00:00:00 2001 From: YuanFeng <770153798@qq.com> Date: Thu, 24 Oct 2024 00:12:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=BD=AC=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/node/ShapeImageNode.vue | 34 +++++++++---------- .../components/node/ShapeImageNode.vue | 34 +++++++++---------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/hangtag-ui/hangtag-ui-admin/src/components/DraftDesign/components/node/ShapeImageNode.vue b/hangtag-ui/hangtag-ui-admin/src/components/DraftDesign/components/node/ShapeImageNode.vue index 2675f46..7db4643 100644 --- a/hangtag-ui/hangtag-ui-admin/src/components/DraftDesign/components/node/ShapeImageNode.vue +++ b/hangtag-ui/hangtag-ui-admin/src/components/DraftDesign/components/node/ShapeImageNode.vue @@ -258,23 +258,23 @@ export default defineComponent({ } }, info) - if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){ - // DataUri.imageToDataUri(this.cellInfo.style.shape.href, - // function (nu, url) { - // console.log("base64 完成") - // // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行 - // // @ts-ignore - // this.hrefBase64 = url; // 给图片标签赋值 - // } - - // ); - convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{ - // @ts-ignore 待优化 - this.hrefBase64 = res - console.log("base64 完成") - // this.cellInfo.style.shape.href = res - }) - } + // if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){ + // // DataUri.imageToDataUri(this.cellInfo.style.shape.href, + // // function (nu, url) { + // // console.log("base64 完成") + // // // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行 + // // // @ts-ignore + // // this.hrefBase64 = url; // 给图片标签赋值 + // // } + // + // // ); + // convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{ + // // @ts-ignore 待优化 + // this.hrefBase64 = res + // console.log("base64 完成") + // // this.cellInfo.style.shape.href = res + // }) + // } setTimeout(() => { if (this.nodeInfo.store && this.nodeInfo.store.data) { this.nodeInfo.store.data.data = this.cellInfo diff --git a/hangtag-ui/hangtag-ui-front/src/components/DraftDesign/components/node/ShapeImageNode.vue b/hangtag-ui/hangtag-ui-front/src/components/DraftDesign/components/node/ShapeImageNode.vue index 2675f46..7db4643 100644 --- a/hangtag-ui/hangtag-ui-front/src/components/DraftDesign/components/node/ShapeImageNode.vue +++ b/hangtag-ui/hangtag-ui-front/src/components/DraftDesign/components/node/ShapeImageNode.vue @@ -258,23 +258,23 @@ export default defineComponent({ } }, info) - if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){ - // DataUri.imageToDataUri(this.cellInfo.style.shape.href, - // function (nu, url) { - // console.log("base64 完成") - // // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行 - // // @ts-ignore - // this.hrefBase64 = url; // 给图片标签赋值 - // } - - // ); - convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{ - // @ts-ignore 待优化 - this.hrefBase64 = res - console.log("base64 完成") - // this.cellInfo.style.shape.href = res - }) - } + // if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){ + // // DataUri.imageToDataUri(this.cellInfo.style.shape.href, + // // function (nu, url) { + // // console.log("base64 完成") + // // // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行 + // // // @ts-ignore + // // this.hrefBase64 = url; // 给图片标签赋值 + // // } + // + // // ); + // convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{ + // // @ts-ignore 待优化 + // this.hrefBase64 = res + // console.log("base64 完成") + // // this.cellInfo.style.shape.href = res + // }) + // } setTimeout(() => { if (this.nodeInfo.store && this.nodeInfo.store.data) { this.nodeInfo.store.data.data = this.cellInfo