From 198f22b481023f3af0c14d08aa782b892eedaab4 Mon Sep 17 00:00:00 2001 From: jinna Date: Mon, 22 May 2023 15:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=A4=B4=E5=83=8F=E5=9B=BE=E7=89=87=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/option/user/info.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/option/user/info.js b/src/option/user/info.js index 1c1fcb0..16111a2 100644 --- a/src/option/user/info.js +++ b/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(); }