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() {
|
||||
return {
|
||||
images: new Map<Number, ImageType>(),
|
||||
currentPath: window.location.hash,
|
||||
file: null as FileList | null
|
||||
}
|
||||
},
|
||||
@@ -32,9 +31,8 @@ export default defineComponent({
|
||||
});
|
||||
},
|
||||
deleteFile(id: number) {
|
||||
api.deleteImage(id).then(() => {
|
||||
this.updateImageList();
|
||||
})
|
||||
this.images.delete(id);
|
||||
api.deleteImage(id);
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in new issue
Block a user