แก้ การลบของ backup
This commit is contained in:
parent
4f05f1164d
commit
8bac673d3f
1 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue