mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 fix(update): 执行后刷新以免一直检测版本过低
This commit is contained in:
@@ -487,6 +487,8 @@ async function resetDB () {
|
||||
snackbarText.value = "数据库已重置!请进行再次检查。";
|
||||
snackbarColor.value = "success";
|
||||
snackbar.value = true;
|
||||
// 刷新
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
// 更新 SQLite 数据库
|
||||
@@ -498,6 +500,8 @@ async function updateDB () {
|
||||
snackbarText.value = "数据库已是最新!";
|
||||
snackbarColor.value = "success";
|
||||
snackbar.value = true;
|
||||
// 刷新
|
||||
window.location.reload();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user