File tree 1 file changed +5
-2
lines changed
src/components/modals/views 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 13
13
<template v-if =" showCropperModule " >
14
14
<cropper-module v-bind:imgUrl =" imgUrl"
15
15
v-bind:maxHeight =" maxHeight"
16
- v-on:closeCropper =" showCropperModule = false" ></cropper-module >
16
+ v-on:closeCropper =" () => { showCropperModule = false; setImgUrl();} " ></cropper-module >
17
17
</template >
18
18
<template v-else >
19
19
<img v-bind:src =" imgUrl"
@@ -53,7 +53,7 @@ export default {
53
53
},
54
54
created () {
55
55
// Create image URL
56
- this .imgUrl = ` ${ this . $store . getters [ ' fm/settings/baseUrl ' ] } preview?disk= ${ this . selectedDisk } &path= ${ encodeURIComponent ( this . selectedItem . path ) } ` ;
56
+ this .setImgUrl () ;
57
57
},
58
58
computed: {
59
59
/**
@@ -97,6 +97,9 @@ export default {
97
97
canCrop (extension ) {
98
98
return this .$store .state .fm .settings .cropExtensions .includes (extension .toLowerCase ());
99
99
},
100
+ setImgUrl () {
101
+ this .imgUrl = ` ${ this .$store .getters [' fm/settings/baseUrl' ]} preview?disk=${ this .selectedDisk } &path=${ encodeURIComponent (this .selectedItem .path )} &v=${ + new Date } ` ;
102
+ }
100
103
},
101
104
};
102
105
</script >
You can’t perform that action at this time.
0 commit comments