From ab7e7f8d6a6825e7169895b36137ca78c4002d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Sat, 29 Nov 2025 06:55:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor(License):=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=86=85=E8=81=94=E8=84=9A=E6=9C=AC=E6=9B=BF=E6=8D=A2=E5=8A=A8?= =?UTF-8?q?=E6=80=81URL=E6=9B=B4=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除原有的动态URL更新函数,改为直接在脚本中设置当前URL,简化实现并提高可靠性 --- src/components/misc/License.astro | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/components/misc/License.astro b/src/components/misc/License.astro index ff3aa7b91..4d0c0ea37 100644 --- a/src/components/misc/License.astro +++ b/src/components/misc/License.astro @@ -21,9 +21,18 @@ const postUrl = decodeURIComponent(Astro.url.toString());
{title}
- - {postUrl} - + + + + +
作者
@@ -41,16 +50,4 @@ const postUrl = decodeURIComponent(Astro.url.toString());
- \ No newline at end of file +