添加用户上传头像图片大小限制

main
jinna 3 years ago
parent b2463db0c0
commit 198f22b481
  1. 6
      src/option/user/info.js

@ -115,6 +115,12 @@ export const userInfoOption = {
type: "error",
});
loading();
} else if (file.size / 1024 / 1024 > 0.48) {
Message({
message: "上传的用户头像大小应小于500k",
type: "error",
});
loading();
} else {
done();
}

Loading…
Cancel
Save