[Vuejs]-Vue-cropperjs is not refreshing when adding new photo

0👍

You must call the replace function on the cropper instance as noted in the documentation

Replace the image’s src and rebuild the cropper.

setImage(e) {
  this.urlProfilePreviewAdd = URL.createObjectURL(e.target.files[0]);
  this.$refs.cropper.replace(this.urlProfilePreviewAdd);
},

Leave a comment