mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 初始化数据库仅保留手动方式 #62
This commit is contained in:
14
src/App.vue
14
src/App.vue
@@ -92,7 +92,6 @@ async function checkAppLoad(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
await createDataDir();
|
||||
await initData();
|
||||
appStore.loading = true;
|
||||
console.info("数据加载完成!");
|
||||
}
|
||||
@@ -156,19 +155,6 @@ async function createDataDir(): Promise<void> {
|
||||
console.info("数据文件夹创建完成!");
|
||||
}
|
||||
|
||||
// 初始化数据库
|
||||
async function initData(): Promise<void> {
|
||||
if (import.meta.env.MODE === "development") {
|
||||
console.info("开发环境,跳过数据库初始化!");
|
||||
return;
|
||||
}
|
||||
await TGSqlite.reset();
|
||||
showSnackbar({
|
||||
text: "已成功初始化数据库!",
|
||||
});
|
||||
console.info("已成功初始化数据库!");
|
||||
}
|
||||
|
||||
async function getDeepLink(): Promise<void> {
|
||||
await event.listen("active_deep_link", async (e) => {
|
||||
const windowGet = new TauriWindow.WebviewWindow("TeyvatGuide");
|
||||
|
||||
Reference in New Issue
Block a user