From d7753f034fc21bb724b2143a6289f3bc386b1aec Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 May 2026 16:42:16 +0800 Subject: [PATCH] fix: Corpus Agent page blank because IIFE never shows .app div Root cause: auto-login IIFE checks localStorage for current_user, calls /api/auth/quick-login async, sets token in .then() callback - but never sets document.getElementById("app").style.display = "flex". The old if(token) block that shows .app runs synchronously before the fetch completes, so .app stays display:none. Fix: add display:flex inside the IIFE's .then callback after successful quick-login. --- server/corpus-agent/static/index.html | 981 ++++++++++---------------- 1 file changed, 384 insertions(+), 597 deletions(-) diff --git a/server/corpus-agent/static/index.html b/server/corpus-agent/static/index.html index 5350cc6..5cc3611 100644 --- a/server/corpus-agent/static/index.html +++ b/server/corpus-agent/static/index.html @@ -2,698 +2,485 @@ - -语料采集系统 · Corpus Agent + +语料采集 · Corpus Agent -
- + + + + + +
-

🧠 语料采集系统 · Corpus Agent

-

自动采集 · 脱敏 · 格式化 · 对话式语料分析

-
v1.1.0 · 国作登字-2026-A-00037559
-
- - -
- - -