ElementUI picture upload problem

now do a picture upload function, which requires you to preview the picture, put el-upload "s : auto-upload= "false" and use : on-change= "beforeId1Upload" to fetch it to url, but after uploading a picture, if I feel that the picture is not satisfied, click upload again, : on-change= "beforeId1Upload" will not work, that is, can not replace the picture, may I ask how to solve this problem? Thank you!

Apr.02,2021

if you choose the same picture, this problem occurs: clear the value of input=file after uploading the picture

Menu