File tree 1 file changed +7
-3
lines changed
src/components/modals/views 1 file changed +7
-3
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; setImgUrl();} " ></cropper-module >
16
+ v-on:closeCropper =" closeCropper " ></cropper-module >
17
17
</template >
18
18
<template v-else >
19
19
<img v-bind:src =" imgUrl"
@@ -98,8 +98,12 @@ export default {
98
98
return this .$store .state .fm .settings .cropExtensions .includes (extension .toLowerCase ());
99
99
},
100
100
setImgUrl () {
101
- this .imgUrl = ` ${ this .$store .getters [' fm/settings/baseUrl' ]} preview?disk=${ this .selectedDisk } &path=${ encodeURIComponent (this .selectedItem .path )} &v=${ + new Date } ` ;
102
- }
101
+ this .imgUrl = ` ${ this .$store .getters [' fm/settings/baseUrl' ]} preview?disk=${ this .selectedDisk } &path=${ encodeURIComponent (this .selectedItem .path )} &v=${ this .selectedItem .timestamp } ` ;
102
+ },
103
+ closeCropper () {
104
+ this .showCropperModule = false ;
105
+ this .setImgUrl ();
106
+ },
103
107
},
104
108
};
105
109
</script >
You can’t perform that action at this time.
0 commit comments