mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
⚡️ 数据库可以直接更新
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -216,18 +216,24 @@ async function checkUpdate(): Promise<void> {
|
||||
await TGLogger.Info("[App][checkUpdate] 检测到版本更新!");
|
||||
const confirm = await showConfirm({
|
||||
title: "检测到版本更新",
|
||||
text: "请到设置页手动更新版本,即将弹出更新说明子页面",
|
||||
text: "是否更新数据库数据?",
|
||||
});
|
||||
if (!confirm) {
|
||||
showSnackbar({
|
||||
text: "请到设置页手动更新版本!",
|
||||
text: "请到设置页手动更新数据库!",
|
||||
color: "error",
|
||||
timeout: 3000,
|
||||
});
|
||||
window.open("https://app.btmuli.ink/docs/Changelogs.html");
|
||||
return;
|
||||
}
|
||||
appStore.buildTime = getBuildTime();
|
||||
window.open("https://app.btmuli.ink/docs/Changelogs.html");
|
||||
await TGSqlite.update();
|
||||
showSnackbar({
|
||||
text: "数据库已更新!",
|
||||
color: "success",
|
||||
timeout: 3000,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user