forked from bai/curriculum-project-hub
fix(database): expose submitCreate on window.__lib in library browser
新建根目录/子节点弹窗的「创建」按钮 onclick 调 window.__lib.submitCreate, 但该函数虽已定义却漏挂到 __lib 导出表,导致点击报 "submitCreate is not a function"。补挂即可。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -574,6 +574,7 @@ export function renderLibraryBrowser(): string {
|
|||||||
ok("已收回"); renderTab();
|
ok("已收回"); renderTab();
|
||||||
} catch (e) { fail(e); }
|
} catch (e) { fail(e); }
|
||||||
},
|
},
|
||||||
|
submitCreate,
|
||||||
newFileDialog, submitNewFile, openFile, closePreview, saveFile, deleteFile, showHistory,
|
newFileDialog, submitNewFile, openFile, closePreview, saveFile, deleteFile, showHistory,
|
||||||
acceptLatest() { openFile(currentFile.path); toast("已载入最新内容,请在此基础上合并", "info"); },
|
acceptLatest() { openFile(currentFile.path); toast("已载入最新内容,请在此基础上合并", "info"); },
|
||||||
submitExport, closeModal,
|
submitExport, closeModal,
|
||||||
|
|||||||
Reference in New Issue
Block a user