<div class="upload-active">
<el-upload
name="file"
accept=".docx"
action="/api/file"
ref="uploadref"
:multiple="false"
:auto-upload="true"
:show-file-list="true"
:before-upload="beforeUpload"
:on-success="handleSuccess"
:on-error="handleError"
:headers="myHeaders"
:before-remove="beforeRemove"
:on-remove="handelRemove"
:data="type" >
<div
v-if='!isDisabled'
class="upload-pdf-btn">
上传 文件
</div>
</el-upload>
</div>
name:上传的文件字段名;
accept:限制文