From aa0066d36e8c6efd71ab304178205e3b5a75fb40 Mon Sep 17 00:00:00 2001 From: bingshuo <565183519@qq.com> Date: Tue, 19 May 2026 22:17:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20JS=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= =?UTF-8?q?=20=E2=80=94=20checkNt=E4=B8=AD=E8=BD=AC=E4=B9=89=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E5=AF=BC=E8=87=B4=E8=84=9A=E6=9C=AC=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homepage/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepage/index.html b/homepage/index.html index 5c4ee92..b645cbb 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -476,7 +476,7 @@ setInterval(upTr,30000);upTr(); /* ── Notion ── */ async function connectNotion(){try{window.location.href='/api/notion/connect?user_key=default'}catch(e){alert('Notion 连接暂时不可用')}} -async function checkNt(){try{const r=await fetch('/api/notion/status');const d=await r.json();if(!d.ok)return;const b=document.getElementById('notion-body'),l=document.getElementById('notion-label');if(d.connected_users&&d.connected_users.length>0){const u=d.connected_users[0];l.textContent='✅ '+u.workspace;b.innerHTML='
✅ Notion 已连接 · '+u.workspace+'
💡 需要先在 Notion 页面右上角 → Add connections → 选择「光湖铸渊连接器」,然后对铸渊说「搜索我的Notion」
'}else{l.textContent='未连接';b.innerHTML='
连接 Notion 后,铸渊可读取和记录你的页面
✅ 按语言路径读取 · ✅ 新建页面 · ❌ 不编辑/删除现有
'}}catch(e){}} +async function checkNt(){try{const r=await fetch('/api/notion/status');const d=await r.json();if(!d.ok)return;const b=document.getElementById('notion-body'),l=document.getElementById('notion-label');if(d.connected_users&&d.connected_users.length>0){const u=d.connected_users[0];l.textContent='✅ '+u.workspace;b.innerHTML='
✅ Notion 已连接 · '+u.workspace+'
💡 需要先在 Notion 页面右上角 → Add connections → 选择「光湖铸渊连接器」,然后对铸渊说「搜索我的Notion」
'}else{l.textContent='未连接';b.innerHTML='
连接 Notion 后,铸渊可读取和记录你的页面
✅ 按语言路径读取 · ✅ 新建页面 · ❌ 不编辑/删除现有
'}}catch(e){}} setInterval(checkNt,15000);checkNt(); /* ── 浮窗切换 ── */