From 2f2ece1a3a1c0632f7172b730ab41d312f551f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD?= <3401797899@qq.com> Date: Sun, 26 Jul 2026 16:39:38 +0800 Subject: [PATCH] fix(database): expose submitCreate on window.__lib in library browser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新建根目录/子节点弹窗的「创建」按钮 onclick 调 window.__lib.submitCreate, 但该函数虽已定义却漏挂到 __lib 导出表,导致点击报 "submitCreate is not a function"。补挂即可。 Co-Authored-By: Claude Opus 4.8 --- hub/src/database/routes/libraryBrowser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/hub/src/database/routes/libraryBrowser.ts b/hub/src/database/routes/libraryBrowser.ts index bc61435..0499f48 100644 --- a/hub/src/database/routes/libraryBrowser.ts +++ b/hub/src/database/routes/libraryBrowser.ts @@ -574,6 +574,7 @@ export function renderLibraryBrowser(): string { ok("已收回"); renderTab(); } catch (e) { fail(e); } }, + submitCreate, newFileDialog, submitNewFile, openFile, closePreview, saveFile, deleteFile, showHistory, acceptLatest() { openFile(currentFile.path); toast("已载入最新内容,请在此基础上合并", "info"); }, submitExport, closeModal,