这个不用说
npm i XLSX -S
然后
解析
<el-upload class="upload" action="" :multiple="false" :show-file-list="false"
accept="csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
:http-request="httpRequest">
<el-button size="small" type="primary">上传</el-button>
</el-upload>
httpRequest(e) {
let file = e.file // 文件信息
if (!file) {
// 没有文件