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) {