diff --git a/src/modules/04_system/stores/main.ts b/src/modules/04_system/stores/main.ts index ff7d04b4..c1f1a083 100644 --- a/src/modules/04_system/stores/main.ts +++ b/src/modules/04_system/stores/main.ts @@ -109,8 +109,8 @@ export const useDataStore = defineStore("systemStore", () => { .then(async (res) => { backupRunTotal.value = res.data.length; - if (backupRunTotal.value === 0 && prevBackupRunTotal.value !== 0) { - cb(); + if (backupRunTotal.value === 0) { + if (prevBackupRunTotal.value !== -1) cb(); prevBackupRunTotal.value = backupRunTotal.value; return; } @@ -147,7 +147,7 @@ export const useDataStore = defineStore("systemStore", () => { .get(config.API.backup + "/restore-running-list") .then(async (res) => { restoreRunTotal.value = res.data.length; - if (restoreRunTotal.value === 0 && prevRestoreRunTotal.value !== 0) { + if (restoreRunTotal.value === 0) { cb(); prevRestoreRunTotal.value = restoreRunTotal.value; return;