From e1a5b20d9d06c55c239a07cc6879f454f4d0ec8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Wed, 6 Mar 2024 15:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=8F=AF=E4=BB=A5=E7=9B=B4=E6=8E=A5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 656ab239..f118204a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -216,18 +216,24 @@ async function checkUpdate(): Promise { 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, + }); } }