diff --git a/src/components/viewer/Viewer.vue b/src/components/viewer/Viewer.vue index c3367ba0..bf3ff8d1 100644 --- a/src/components/viewer/Viewer.vue +++ b/src/components/viewer/Viewer.vue @@ -774,7 +774,6 @@ export default defineComponent({ if (!photo.imageInfo) { axios.get(API.IMAGE_INFO(photo.fileid)).then((res) => { photo.imageInfo = res.data; - this.$forceUpdate(); }); } diff --git a/src/services/Utils.ts b/src/services/Utils.ts index a72280d2..3ee8a188 100644 --- a/src/services/Utils.ts +++ b/src/services/Utils.ts @@ -197,6 +197,7 @@ export function randomSubarray(arr: any[], size: number) { export function convertFlags(photo: IPhoto) { if (typeof photo.flag === "undefined") { photo.flag = 0; // flags + photo.imageInfo = null; // make it reactive } if (photo.isvideo) {