From ff649c2426d9c252e4f4b19c0238c5dd81d1f996 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Fri, 17 Nov 2023 23:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=BB=85=E4=BF=9D=E7=95=99=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E6=96=B9=E5=BC=8F=20#62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 14 -------------- 1 file changed, 14 deletions(-) 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");