修复bug

pull/1/head
zhangqihang 2024-02-27 08:47:24 +08:00
parent 3bed69c2c3
commit 539c10309a
1 changed files with 4 additions and 0 deletions

View File

@ -785,6 +785,7 @@ const fnSubmit = debounce(
form.letTypeOfWorkType = "value"; form.letTypeOfWorkType = "value";
form.letTypeOfWorkValue = form.TYPE_OF_WORK; form.letTypeOfWorkValue = form.TYPE_OF_WORK;
} }
if (data.form.faceFile?.[0]?.raw) { if (data.form.faceFile?.[0]?.raw) {
const resData = await image2Base64(data.form.faceFile[0].url); const resData = await image2Base64(data.form.faceFile[0].url);
form.USERAVATARPREFIX = resData.substring( form.USERAVATARPREFIX = resData.substring(
@ -792,6 +793,9 @@ const fnSubmit = debounce(
resData.indexOf("base64,") + 7 resData.indexOf("base64,") + 7
); );
form.USERAVATARURL = resData.substring(resData.indexOf("base64,") + 7); form.USERAVATARURL = resData.substring(resData.indexOf("base64,") + 7);
} else {
form.USERAVATARPREFIX = "";
form.USERAVATARURL = "";
} }
if (!USER_ID) { if (!USER_ID) {
if (data.allUser > data.USERS_NUM) { if (data.allUser > data.USERS_NUM) {