diff --git a/src/App.vue b/src/App.vue index 3a650ef9..b9363428 100644 --- a/src/App.vue +++ b/src/App.vue @@ -92,7 +92,6 @@ async function checkAppLoad(): Promise { return; } await createDataDir(); - await initData(); appStore.loading = true; console.info("数据加载完成!"); } @@ -156,19 +155,6 @@ async function createDataDir(): Promise { console.info("数据文件夹创建完成!"); } -// 初始化数据库 -async function initData(): Promise { - if (import.meta.env.MODE === "development") { - console.info("开发环境,跳过数据库初始化!"); - return; - } - await TGSqlite.reset(); - showSnackbar({ - text: "已成功初始化数据库!", - }); - console.info("已成功初始化数据库!"); -} - async function getDeepLink(): Promise { await event.listen("active_deep_link", async (e) => { const windowGet = new TauriWindow.WebviewWindow("TeyvatGuide");