From b8578a4baa821586308fc2a3ac4fdc2be909b705 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 22 Feb 2025 15:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=93=E5=87=BA=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E5=B0=86dataUrl=E8=BD=AC=E4=B8=BA=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=97=B6=EF=BC=8C=E5=9B=BE=E7=89=87=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E8=B6=85=E5=87=BA=E8=BE=93=E5=87=BA=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/popup/ResultMenu.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/popup/ResultMenu.vue b/src/components/popup/ResultMenu.vue index a1442c6..d920950 100644 --- a/src/components/popup/ResultMenu.vue +++ b/src/components/popup/ResultMenu.vue @@ -56,7 +56,7 @@ export default { runResult: Array, selectText: String, }, - emits: ["updateResult"], + emits: ["updateResult", "showImg"], computed: { /** * 处理运行结果数据,同时完成以下任务: @@ -146,7 +146,9 @@ export default { const imagePattern = /data:image\/.*?;base64,.*/g; const imageUrls = this.getFormattedContent() .match(imagePattern) - ?.map((dataUrl) => `
`); + ?.map( + (dataUrl) => `
` + ); if (!imageUrls) { return quickcommand.showMessageBox("dataUrl 格式不正确!");