|
@@ -39,7 +39,7 @@
|
|
|
action="/api/admin/v1/upload/file"
|
|
|
multiple>
|
|
|
<i class="el-icon-plus"></i>
|
|
|
- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过5M</div>
|
|
|
+ <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过30M</div>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="user_sign_status"
|
|
@@ -101,9 +101,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
beforeAvatarUpload (file) {
|
|
|
- const isLt2M = file.size / 1024 / 1024 < 5
|
|
|
+ const isLt2M = file.size / 1024 / 1024 <= 30
|
|
|
if (!isLt2M) {
|
|
|
- this.$message.error('上传图片大小不能超过 5MB!')
|
|
|
+ this.$message.error('上传图片大小不能超过 30MB!')
|
|
|
}
|
|
|
return isLt2M
|
|
|
},
|