From 7ff44ef333158d861829b9763eb49f9863579cdc Mon Sep 17 00:00:00 2001 From: langxm Date: Tue, 13 Oct 2026 19:53:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A2=84=E8=A7=88=E6=95=99=E7=A8=8B?= =?UTF-8?q?=E5=AD=A6=E7=A7=91=E5=9B=9E=E9=80=80=EF=BC=88=E6=97=A0=E9=80=9F?= =?UTF-8?q?=E6=9F=A5=E8=A1=A8=E5=AD=A6=E7=A7=91=E2=86=92=E5=85=A8=E5=AD=A6?= =?UTF-8?q?=E7=A7=91+Markdown=E5=85=A5=E9=97=A8=EF=BC=89+=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=B0=B1=E7=BB=AA=E5=90=8E=E5=88=B7=E6=96=B0=E9=A2=84?= =?UTF-8?q?=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index ad781c7..2b4f20f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -498,7 +498,13 @@ function renderLatexGuide(pre){ var html=''; if(CUR_COURSE && CUR_COURSE!=='common'){ var c=courses.filter(function(x){return x.id===CUR_COURSE;})[0]; - if(c) html+=guideCourse(c); + if(c){ + html+=guideCourse(c); + } else { + /* 该学科无速查表(如代码课):视为未选择,展示全部学科 + Markdown 入门 */ + courses.forEach(function(x){ if(x.id!=='common') html+=guideCourse(x); }); + html+=markdownQuickStart(); + } } else { courses.forEach(function(c){ if(c.id!=='common') html+=guideCourse(c); }); html+=markdownQuickStart(); @@ -545,6 +551,7 @@ function loadLatexChips(){ hint.style.cssText='font-size:11px;color:var(--text3);margin-left:2px'; hint.textContent='· 点击插入模板'; box.appendChild(hint); + latexLive(); // 数据就绪后刷新预览区教程 }).catch(function(){ /* 速查表加载失败:保留最小常用集 */ var box=document.getElementById('latexChips');