template中:

<input type="file" ref="pathClear@change="onUpload" name="file" id="file">

methods中:
onUpload (){
this . $refs . pathClear . value = ''
},

Logo

前往低代码交流专区

更多推荐