diff --git a/electron/db/index.js b/electron/db/index.js index c1d5713..e35c27f 100644 --- a/electron/db/index.js +++ b/electron/db/index.js @@ -35,6 +35,7 @@ export function closeAllConnections() { // 检查数据库是否已初始化 export async function checkDatabaseInitialized() { try { + initializeUserDatabase(); console.log('开始检查数据库初始化状态...'); const systemDb = await getDbConnection(getSystemDbPath()); console.log('成功打开系统数据库');