From f8d9b0ecc1b2c75360c36c181d1a36295aceb2ae Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:25:14 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=8A?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=20stores?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/03_logs/stores/main.ts | 2 +- src/modules/04_system/components/cardBackupRestore.vue | 5 ++++- src/modules/04_system/stores/main.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/03_logs/stores/main.ts b/src/modules/03_logs/stores/main.ts index 96c6b86a..a9b57f61 100644 --- a/src/modules/03_logs/stores/main.ts +++ b/src/modules/03_logs/stores/main.ts @@ -19,7 +19,7 @@ const { dialogConfirm, } = mixin; -export const useDataStore = defineStore("storeData", () => { +export const useDataStore = defineStore("logStore", () => { const size = ref(30); const logData = ref([]); const systemName = ref("JWS-SOS"); diff --git a/src/modules/04_system/components/cardBackupRestore.vue b/src/modules/04_system/components/cardBackupRestore.vue index 03d49bd3..d522b14e 100644 --- a/src/modules/04_system/components/cardBackupRestore.vue +++ b/src/modules/04_system/components/cardBackupRestore.vue @@ -112,7 +112,10 @@ function onRestore(name: string) { } onMounted(async () => { - await fetchListBackup(); + setTimeout(() => { + + fetchListBackup(); + }, 1000); }); diff --git a/src/modules/04_system/stores/main.ts b/src/modules/04_system/stores/main.ts index 60f6320e..131b4940 100644 --- a/src/modules/04_system/stores/main.ts +++ b/src/modules/04_system/stores/main.ts @@ -21,7 +21,7 @@ const { dialogConfirm, } = mixin; -export const useDataStore = defineStore("storeData", () => { +export const useDataStore = defineStore("systemStore", () => { const dataBackUp = ref([]); const prevBackupRunTotal = ref(-1); const backupRunTotal = ref(0);