|
@@ -64,6 +64,7 @@ const dealImage = (base64: string, targetWidth: number, targetSize: number, call
|
|
* 压缩html中的base64
|
|
* 压缩html中的base64
|
|
*/
|
|
*/
|
|
const dealHtml = (html: string,callBack:Function) => {
|
|
const dealHtml = (html: string,callBack:Function) => {
|
|
|
|
+ callBack(html);
|
|
const htmlDoc = new DOMParser().parseFromString(html, "text/html");
|
|
const htmlDoc = new DOMParser().parseFromString(html, "text/html");
|
|
const imgs = htmlDoc.querySelectorAll("img");
|
|
const imgs = htmlDoc.querySelectorAll("img");
|
|
for (let i = 0; i < imgs.length; i += 1) {
|
|
for (let i = 0; i < imgs.length; i += 1) {
|
|
@@ -144,6 +145,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
|
|
/**
|
|
/**
|
|
* 判断
|
|
* 判断
|
|
*/
|
|
*/
|
|
|
|
+ console.log(formValues);
|
|
if (getTextFromHtml(formValues.front + formValues.back).length <= 1) {
|
|
if (getTextFromHtml(formValues.front + formValues.back).length <= 1) {
|
|
message.info("你是不是没有输入文字?");
|
|
message.info("你是不是没有输入文字?");
|
|
return;
|
|
return;
|