viewer: make imageInfo reactive (fix #412)
parent
52491f359e
commit
c9fc7c3c60
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue