vuejs local image preview, how to get the image src?
ComponentImagePreview.vue
Problem:
After clicking a picture, the picture cannot be displayed.src="[object File]"
is displayed in the browser debugging window. How should I write it? Can?
The following two ways of writing in the preview method will not work.
event.target.files event.target.files[0]
event.target.value this is src
console.log(event.target.files) to see what the structure is like