From 4151f176093471c5d010fda40dc69495af9e8b3a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 12 Jul 2021 17:50:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=9D=E5=AD=98=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=B5=8F=E8=A7=88=E5=99=A8=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E5=A0=86=E6=A0=88=E8=B6=85=E5=87=BA=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=EF=BC=8C=E9=99=8D=E4=BD=8E=E4=B8=80=E4=B8=8B=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=B4=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/PanelViewShow.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/panel/list/PanelViewShow.vue b/frontend/src/views/panel/list/PanelViewShow.vue index 01eba66607..d56ef0b195 100644 --- a/frontend/src/views/panel/list/PanelViewShow.vue +++ b/frontend/src/views/panel/list/PanelViewShow.vue @@ -131,7 +131,7 @@ export default { saveToTemplate() { this.templateSaveShow = true html2canvas(this.$refs.imageWrapper).then(canvas => { - const snapshot = canvas.toDataURL('image/jpeg', 0.2) // 0.2是图片质量 + const snapshot = canvas.toDataURL('image/jpeg', 0.1) // 0.2是图片质量 if (snapshot !== '') { this.templateInfo = { name: this.$store.state.panel.panelInfo.name, @@ -149,7 +149,7 @@ export default { }, downloadToTemplate() { html2canvas(this.$refs.imageWrapper).then(canvas => { - const snapshot = canvas.toDataURL('image/jpeg', 0.2) // 0.2是图片质量 + const snapshot = canvas.toDataURL('image/jpeg', 0.1) // 0.2是图片质量 if (snapshot !== '') { this.templateInfo = { name: this.$store.state.panel.panelInfo.name, @@ -167,7 +167,7 @@ export default { refreshTemplateInfo() { this.templateInfo = {} html2canvas(this.$refs.imageWrapper).then(canvas => { - const snapshot = canvas.toDataURL('image/jpeg', 0.2) // 0.2是图片质量 + const snapshot = canvas.toDataURL('image/jpeg', 0.1) // 0.2是图片质量 if (snapshot !== '') { this.templateInfo = { snapshot: snapshot,