From fc9c0ce3bcaf7f39baf0f3fef27383a072067593 Mon Sep 17 00:00:00 2001 From: outtime Date: Mon, 30 Mar 2020 19:40:06 +0800 Subject: =?UTF-8?q?=F0=9F=A7=A3Fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E7=94=9F=E6=88=90=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive.php | 2 +- assets/js/miracles.min.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/archive.php b/archive.php index 770e1f1..cf637e3 100644 --- a/archive.php +++ b/archive.php @@ -30,7 +30,7 @@ $this->need('includes/header.php'); } ?>
- + diff --git a/assets/js/miracles.min.js b/assets/js/miracles.min.js index a95edff..0b45f62 100644 --- a/assets/js/miracles.min.js +++ b/assets/js/miracles.min.js @@ -446,14 +446,15 @@ linkTarget(); * 文章二维码 */ function togglePostQrcode() { - let post_qr = new QRCode(document.getElementById("post-qr"), { + $("#post-qr").html(""); + let post_qr = new QRCode($("#post-qr")[0], { width: 230, height: 230, colorLight : "#f1f1f1", correctLevel : QRCode.CorrectLevel.L }); + $('.post-qr').toggleClass("post-qr-open"); post_qr.makeCode(window.location.href); - $('.post-qr').toggleClass("post-qr-open"); } $('#post-qrcode-btn').on("click", togglePostQrcode); -- cgit v1.2.3