From fe2de5a67a603e604940e5bee2656fba321770d3 Mon Sep 17 00:00:00 2001 From: vcheckzen <18008498+vcheckzen@users.noreply.github.com> Date: Fri, 20 Sep 2024 05:44:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E5=90=8E?= =?UTF-8?q?=E7=BC=80=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front-end/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front-end/index.html b/front-end/index.html index cebb9486..a963388d 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -1190,7 +1190,8 @@ }, }; - const suffix = path.split('.').pop(); + const suffix = + path.split('/').pop().split('.')[1] || '__no_suffix__'; let content = document.querySelector('.content'); content.appendChild(