Closed Germs31 closed 3 years ago
Issue was corrected. I should have established the new image and then called the replace function. it should look like this.
watch: {
img(newVal){
this.cropperImg = newVal
this.$refs.cropper.replace(newVal)
}
},
HI! Im having an issue when using the replace method. once the replace method is called my src on the img becomes an object when i am sending a string.
<img src="[object Object]" alt="image" style="max-width: 100%; width: 60%;" class="cropper-hidden">
This is my code
Im not totally sure what im doing wrong.