fix: async function openPdf + JS 内联 HTML 修复

- openPdf 改为 async function(修 await 语法错误)
- index.html JS 内联,彻底绕过浏览器缓存问题
- 添加 index_template.html 作为原始模板
This commit is contained in:
2026-06-02 11:04:05 +00:00
parent 37039a4eaa
commit d5ba6f2847
3 changed files with 36 additions and 2 deletions

View File

@@ -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;