vue原生input上传文件
<template> <div> <div v-if="numType"> <input multiple="multiple" v-show="false" type="file" id="sys_upload_file" ref="sysUploadFile" @change="uploadFileFn($event)" /> </div> <div v-else> <input v-show="false" type="file" id="sys_upload_file" ref="sysUploadFile" @change="uploadFileFn($event)" /> </div> </div> </template>