<div class="upload-img p-t-10 p-l-20 spe-field bgc-fff m-t-10">
<div class="m-b-16">请上传简历(word,pdf,图片,最大5M)</div>
<van-uploader
:after-read="afterReadwed"
accept=".pdf,image/*,.doc,.docx"
upload-icon="plus"
:max-count="1"
v-model="fileList.list"
:before-read="uploadBefore"
@click-preview="previewFile"
@delete="delFile"
/>
</div>
let fileList = reactive<any>({
list: []
})
// 简历文件上传
const afterReadwed= async (file: any) => {
const toastId = toast({
type: 'loading',
message: '正在上传...',
duration: 0,
forbidClick: true,
})
var formData = new FormData()
formData.append(