do not reload cache on delete
This commit is contained in:
1 parent
5793ad1598
commit
fab6e9c59b
1 file changed
+2
-4
@@ -18,7 +18,6 @@ export default defineComponent({
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
images: new Map<Number, ImageType>(),
|
images: new Map<Number, ImageType>(),
|
||||||
currentPath: window.location.hash,
|
|
||||||
file: null as FileList | null
|
file: null as FileList | null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -32,9 +31,8 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
deleteFile(id: number) {
|
deleteFile(id: number) {
|
||||||
api.deleteImage(id).then(() => {
|
this.images.delete(id);
|
||||||
this.updateImageList();
|
api.deleteImage(id);
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in new issue
Block a user