From d690336302d7011d5304d93d9ff4ed6be1af9e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=85=E7=A6=BETristan?= Date: Tue, 17 Dec 2024 13:18:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(layout/includes/widgets/post/copyright.pug)?= =?UTF-8?q?:=20=E8=B0=83=E6=95=B4=E5=88=86=E4=BA=AB=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E5=AE=B9=E9=94=99=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 旅禾Tristan --- layout/includes/widgets/post/copyright.pug | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layout/includes/widgets/post/copyright.pug b/layout/includes/widgets/post/copyright.pug index 6ce1a5b8..f1f75f56 100644 --- a/layout/includes/widgets/post/copyright.pug +++ b/layout/includes/widgets/post/copyright.pug @@ -56,9 +56,15 @@ #qrcode .reward-dec=_p('post.share.qrcode') script(pjax). - typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), '!{path}'); + typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), { + text: '!{path}', + correctLevel : QRCode.CorrectLevel.L + }); window.addEventListener('DOMContentLoaded', () => { - new QRCode(document.getElementById("qrcode"), '!{path}'); + new QRCode(document.getElementById("qrcode"), { + text: '!{path}', + correctLevel : QRCode.CorrectLevel.L + }); }); if copyright.enable || page.copyright