From 8bac673d3f5a288d36099f6cf882436b492d348f Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 24 Jul 2024 18:03:13 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=9A=E0=B8=82=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=20=20backup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_system/stores/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/04_system/stores/main.ts b/src/modules/04_system/stores/main.ts index 8445e1bb..16fae9f2 100644 --- a/src/modules/04_system/stores/main.ts +++ b/src/modules/04_system/stores/main.ts @@ -76,7 +76,12 @@ export const useDataStore = defineStore("systemStore", () => { data: { name: filename }, }) .then(async (res) => { - await fetchListBackup(); + if (res.status < 400) { + dataBackUp.value = dataBackUp.value.filter((item) => { + if (item.name !== filename) return true; + return false; + }); + } }) .finally(() => { hideLoader();