From 80403612c6cbab46c0b049fdbef07ae522511f91 Mon Sep 17 00:00:00 2001 From: huan <1486343814@qq.com> Date: Thu, 8 Aug 2024 16:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86index.js=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E4=B8=80=E4=BA=9B=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 030c18a..4db0ff0 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ async function generateImage(title, tags, qrData) { const height = 26; getBackground(ctx, x, y, cornerSize, width, height); }); - ['1'].forEach(value => { + ['1'].forEach((value) => { const codeWidth = 135; const codeHeight = 154; const codeCornerSize = 12; @@ -41,7 +41,7 @@ async function generateImage(title, tags, qrData) { const textMeta = ctx.measureText(tag); const tagContent = { width: textMeta.width + 55, - tag + tag, }; const maxWidth = 173; for (let i = 0; i <= 300; i++) {