Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_34505202/article/details/80997128
template in which:
<input type="file" ref="pathClear" @change="onUpload" name="file" id="file">
methods are:
onUpload
(){
this
.
$refs
.
pathClear
.
value
=
''
},