From 5891cbed8618844ac85d04ff5e8558c85c7194ba Mon Sep 17 00:00:00 2001 From: Net Date: Fri, 19 Jul 2024 16:11:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=20fetchList=20=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99?= =?UTF-8?q?=E0=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_system/components/cardBackupRestore.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/04_system/components/cardBackupRestore.vue b/src/modules/04_system/components/cardBackupRestore.vue index d6e139dc..657cadc8 100644 --- a/src/modules/04_system/components/cardBackupRestore.vue +++ b/src/modules/04_system/components/cardBackupRestore.vue @@ -146,9 +146,12 @@ function onRestore(name: string) { } onMounted(async () => { - fetchListBackup(); - backupRunningList(); - restoreRunningList(); + const res = await fetchListBackup(); + + if (!!res) { + await backupRunningList(); + await restoreRunningList(); + } });