diff --git a/package.json b/package.json index 63cbb4c2..50927705 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "scripts": { "start": "npx serve .", - "dev": "npx serve . --port 3000", + "dev": "npx serve . -l 3090", "build": "node build.cjs", "lint": "echo '使用浏览器开发者工具检查代码'" }, diff --git a/src/modules/auth-files.js b/src/modules/auth-files.js index 32e085b0..31286857 100644 --- a/src/modules/auth-files.js +++ b/src/modules/auth-files.js @@ -788,9 +788,6 @@ export const authFilesModule = { }, showAuthFileDetails(filename, content) { - const detailsElement = document.getElementById('auth-file-details'); - if (!detailsElement) return; - const file = (this.cachedAuthFiles || []).find(f => f && f.name === filename); if (!file) return; @@ -802,13 +799,14 @@ export const authFilesModule = { const jsonContent = content || JSON.stringify(file, null, 2); + // 使用独立的 JSON 弹窗样式,避免被通用 .modal 的 display:none 覆盖 const modalHtml = ` -