From 539c10309ac94417f548c5df5764766ba3a8919b Mon Sep 17 00:00:00 2001 From: zhangqihang Date: Tue, 27 Feb 2024 08:47:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enterprise_management/user/add.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/enterprise_management/user/add.vue b/src/views/enterprise_management/user/add.vue index bc2ea8d..046c5a5 100644 --- a/src/views/enterprise_management/user/add.vue +++ b/src/views/enterprise_management/user/add.vue @@ -785,6 +785,7 @@ const fnSubmit = debounce( form.letTypeOfWorkType = "value"; form.letTypeOfWorkValue = form.TYPE_OF_WORK; } + if (data.form.faceFile?.[0]?.raw) { const resData = await image2Base64(data.form.faceFile[0].url); form.USERAVATARPREFIX = resData.substring( @@ -792,6 +793,9 @@ const fnSubmit = debounce( resData.indexOf("base64,") + 7 ); form.USERAVATARURL = resData.substring(resData.indexOf("base64,") + 7); + } else { + form.USERAVATARPREFIX = ""; + form.USERAVATARURL = ""; } if (!USER_ID) { if (data.allUser > data.USERS_NUM) {