viewer: make imageInfo reactive (fix #412)

pull/460/head
Varun Patil 2023-02-23 22:07:11 -08:00
parent 52491f359e
commit c9fc7c3c60
2 changed files with 1 additions and 1 deletions

View File

@ -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();
});
}

View File

@ -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) {