新增 管理员密码访问

This commit is contained in:
Chen committed 2025-12-07 09:58:37 +08:00
1 parent 85e7711c1a
commit 8ac08c41a7
16 files changed
+856 -51

No files matched your search

+3
View File
@@ -62,8 +62,11 @@ const io = new Server(server, {
// 准备依赖注入
// 包装 config 函数为对象接口
const configManager = {
// 兼容两种命名风格
load: () => config.loadConfig(),
save: (data) => config.saveConfig(data),
loadConfig: () => config.loadConfig(),
saveConfig: (data) => config.saveConfig(data),
addLibrary: (name, path) => config.addLibrary(name, path),
removeLibrary: (id) => config.removeLibrary(id),
updateLibrary: (id, updates) => config.updateLibrary(id, updates),