Skip to content

Commit

Permalink
🐛 延后一段时间以防两个 overlay 覆盖
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed May 28, 2023
1 parent 01962ff commit d6115cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ function tryConfirm (oper: string) {
// transfer confirm oper
async function doConfirm (oper: string) {
await new Promise((resolve) => setTimeout(resolve, 500));
switch (oper) {
case "backup":
await backupData();
Expand Down Expand Up @@ -553,6 +554,7 @@ async function checkDB () {
loadingTitle.value = "正在检查数据库表单完整性...";
loading.value = true;
const res = await TGSqlite.check();
await new Promise((resolve) => setTimeout(resolve, 1000));
if (!res) {
confirmOper.value = "resetDB";
confirmText.value = "数据库表单不完整,是否重置数据库?";
Expand Down Expand Up @@ -599,6 +601,7 @@ async function resetDB () {
// 更新 SQLite 数据库
async function updateDB () {
await new Promise((resolve) => setTimeout(resolve, 500));
loadingTitle.value = "正在更新数据库...";
loading.value = true;
await TGSqlite.update();
Expand Down

0 comments on commit d6115cf

Please sign in to comment.