is an input. After clicking it, you can open the gallery and select the picture I want. After that, I can get the picture address he selected and pass the data to the interface. I can write it myself, but I don’t know how to accept the picture address he selected. I hope God can tell me how to write
<template>
<input accept="image/*" type="file" >、
</template>
export default {
data{
retrun{
}
},
mounted{
},
methods{
//在这里获取到上传的图片就可以
}
}
Can you write native JS?
Use Baidu’s plug-in webuploader
https://github.com/ElemeFE/el...