forked from integrated_whb/integrated_whb_vue
修复bug
parent
3bed69c2c3
commit
539c10309a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue