From 1b7f5ec4485ed604da13711ba6bd22f21ea1957e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9B=B0=E5=9B=B0=E9=B1=BC?= <89380218+chengzhongxue@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=87=E7=AD=BE=E8=AF=AD?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/js/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/assets/js/custom.js b/templates/assets/js/custom.js index 04150b9e..84956cbf 100644 --- a/templates/assets/js/custom.js +++ b/templates/assets/js/custom.js @@ -142,7 +142,7 @@ document.addEventListener("DOMContentLoaded", () => { style: this.getAttribute("style") || '' }; let htmlStr = ` -
${this.innerHTML}
+
${this.innerHTML.trim().replace(/^(
)|(
)$/g, "")}
`; this.innerHTML = htmlStr; } @@ -161,7 +161,7 @@ document.addEventListener("DOMContentLoaded", () => { noIcon: this.getAttribute("noIcon") || '' }; let htmlStr = ` -
${this.innerHTML}
+
${this.innerHTML.trim().replace(/^(
)|(
)$/g, "")}
`; this.innerHTML = htmlStr; }