From d5ba6f28476861dd0667182c907c8261114f555d Mon Sep 17 00:00:00 2001 From: LaoWang <257199637@qq.com> Date: Tue, 2 Jun 2026 11:04:05 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20async=20function=20openPdf=20+=20JS=20?= =?UTF-8?q?=E5=86=85=E8=81=94=20HTML=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - openPdf 改为 async function(修 await 语法错误) - index.html JS 内联,彻底绕过浏览器缓存问题 - 添加 index_template.html 作为原始模板 --- static/app.js | 2 +- static/index.html | 2 +- static/index_template.html | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 static/index_template.html diff --git a/static/app.js b/static/app.js index a9f420e..94f0592 100644 --- a/static/app.js +++ b/static/app.js @@ -174,7 +174,7 @@ function getLocalPdfUrl(extUrl) { return null; } -function openPdf(url, title) { +async function openPdf(url, title) { const decodedUrl = decodeURIComponent(url); const decodedTitle = decodeURIComponent(title); currentPdf = decodedUrl; diff --git a/static/index.html b/static/index.html index 364bafe..90ee027 100644 --- a/static/index.html +++ b/static/index.html @@ -206,7 +206,7 @@ function getLocalPdfUrl(extUrl) { return null; } -function openPdf(url, title) { +async function openPdf(url, title) { const decodedUrl = decodeURIComponent(url); const decodedTitle = decodeURIComponent(title); currentPdf = decodedUrl; diff --git a/static/index_template.html b/static/index_template.html new file mode 100644 index 0000000..e7132a2 --- /dev/null +++ b/static/index_template.html @@ -0,0 +1,34 @@ + + + + + +LLM 论文图书馆 + + + + +
+

🧠 LLM 论文图书馆

+
+ +
+ 🔍 + +
+ +
+ +
+ +
+ + + +