上传文件限一个

This commit is contained in:
gaoyuanwei 2022-07-22 16:51:00 +08:00
parent d92cf6925f
commit 133553b6a1
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,7 @@
:headers="headers" :headers="headers"
@change="handleChange" @change="handleChange"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:maxCount="1"
> >
<a-button <a-button
style=" style="
@ -172,6 +173,10 @@
<span style="font-size: 14px; color: #999"> <span style="font-size: 14px; color: #999">
支持docdocxjpgpngjpegpdfxlxsppt类型文件 支持docdocxjpgpngjpegpdfxlxsppt类型文件
</span> </span>
<div v-if="fileList.length < 1">
<plus-outlined />
<div style="margin-top: 8px">上传限一个文件</div>
</div>
</a-upload> </a-upload>
</a-form-item> </a-form-item>