ตรวจสอบสถานะตอน onMounted
This commit is contained in:
parent
e11e72b673
commit
6c65feb79f
1 changed files with 10 additions and 1 deletions
|
|
@ -21,7 +21,14 @@ import { storeToRefs } from "pinia";
|
|||
const $q = useQuasar();
|
||||
const { showLoader, hideLoader, date2Thai, dialogRemove, dialogConfirm } =
|
||||
useCounterMixin();
|
||||
const { fetchListBackup, createBackUp, restore, deleteBackUp } = useDataStore();
|
||||
const {
|
||||
fetchListBackup,
|
||||
createBackUp,
|
||||
restore,
|
||||
deleteBackUp,
|
||||
backupRunningList,
|
||||
restoreRunningList,
|
||||
} = useDataStore();
|
||||
const storeData = useDataStore();
|
||||
const { dataBackUp, backupRunTotal, restoreRunTotal } = storeToRefs(storeData);
|
||||
|
||||
|
|
@ -114,6 +121,8 @@ function onRestore(name: string) {
|
|||
onMounted(async () => {
|
||||
setTimeout(() => {
|
||||
fetchListBackup();
|
||||
backupRunningList();
|
||||
restoreRunningList();
|
||||
}, 1000);
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue