Commit dd975f2b authored by 杨梦雪's avatar 杨梦雪

上传上限更改

parent 05f0ab9d
...@@ -507,11 +507,11 @@ export default { ...@@ -507,11 +507,11 @@ export default {
}, },
//上传前 //上传前
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
const isLt100M = file.size / 1024 / 1024 < 100; const isLt500M = file.size / 1024 / 1024 < 500;
if (!isLt100M) { if (!isLt500M) {
this.$message.info("上传图片大小不能超过 100MB!"); this.$message.info("上传图片大小不能超过 500MB!");
} }
return isLt100M; return isLt500M;
}, },
uploadPicture(params) { uploadPicture(params) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment