火狐浏览器原生input和el-upload上传文件问题,选取完文件后没反应?
解决办法:
- 原生input
原生input上必须得加multiple=“”这个属性
- el-upload
同理<el-upload class="upload-demo" :action="'/api/sys/importAuthorize'" :headers="{'Authorization': token}" :auto-upload="true" ref="upload" multiple :limit="1" :on-exceed="changeFile" :on-success="handleAvatarSuccess"> <el-button icon="el-icon-bottom-left">导入授权文件</el-button> </el-upload>
multiple属性必须写且为true