限制头像上传图片格式

This commit is contained in:
binbin_pan 2024-05-23 14:23:20 +08:00
parent 9c99ea247d
commit b270c7d341
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<br /> <br />
<el-row> <el-row>
<el-col :lg="2" :sm="3" :xs="3"> <el-col :lg="2" :sm="3" :xs="3">
<el-upload action="#" :http-request="requestUpload" :show-file-list="false" :before-upload="beforeUpload"> <el-upload action="#" :http-request="requestUpload" :show-file-list="false" :before-upload="beforeUpload" accept=".png,.jpg,.jpeg">
<el-button size="small"> <el-button size="small">
选择 选择
<i class="el-icon-upload el-icon--right"></i> <i class="el-icon-upload el-icon--right"></i>