แก้ ชื่อ stores

This commit is contained in:
Net 2024-07-12 11:25:14 +07:00
parent 0948445ed6
commit f8d9b0ecc1
3 changed files with 6 additions and 3 deletions

View file

@ -19,7 +19,7 @@ const {
dialogConfirm, dialogConfirm,
} = mixin; } = mixin;
export const useDataStore = defineStore("storeData", () => { export const useDataStore = defineStore("logStore", () => {
const size = ref<number>(30); const size = ref<number>(30);
const logData = ref<ResLog[]>([]); const logData = ref<ResLog[]>([]);
const systemName = ref<string>("JWS-SOS"); const systemName = ref<string>("JWS-SOS");

View file

@ -112,7 +112,10 @@ function onRestore(name: string) {
} }
onMounted(async () => { onMounted(async () => {
await fetchListBackup(); setTimeout(() => {
fetchListBackup();
}, 1000);
}); });
</script> </script>

View file

@ -21,7 +21,7 @@ const {
dialogConfirm, dialogConfirm,
} = mixin; } = mixin;
export const useDataStore = defineStore("storeData", () => { export const useDataStore = defineStore("systemStore", () => {
const dataBackUp = ref<DataBackup[]>([]); const dataBackUp = ref<DataBackup[]>([]);
const prevBackupRunTotal = ref<number>(-1); const prevBackupRunTotal = ref<number>(-1);
const backupRunTotal = ref<number>(0); const backupRunTotal = ref<number>(0);