This commit is contained in:
wenjiarui 2023-06-28 21:41:51 +08:00
parent b436edc4b5
commit bc871e7327
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ function customCheckImageFn(src, alt, url) {
function Render(props) {
var method = props.methods, data = props.data;
var t = method.t, setEditor = method.setEditor, check = method.check, preview = method.preview, addExtraFile = method.addExtraFile, uploadFile = method.uploadFile, update = method.update, setHtml = method.setHtml, onRemoveArticle = method.onRemoveArticle, gotoPreview = method.gotoPreview;
var id = data.id, content = data.content, editor = data.editor, origin1 = data.origin1, oakFullpath = data.oakFullpath, entity = data.entity, entityId = data.entityId;
var id = data.id, content = data.content, editor = data.editor, origin1 = data.origin1, oakFullpath = data.oakFullpath, entity = data.entity, entityId = data.entityId, html = data.html;
var features = (0, useFeatures_1.default)();
var _a = tslib_1.__read((0, react_1.useState)(""), 2), articleId = _a[0], setArticleId = _a[1];
(0, react_1.useEffect)(function () {
@ -143,7 +143,7 @@ function Render(props) {
},
},
},
}, value: content, onCreated: setEditor, onChange: function (editorDom) {
}, value: html, onCreated: setEditor, onChange: function (editorDom) {
setHtml(editorDom.getHtml());
}, style: {
minHeight: 440,

View File

@ -70,7 +70,7 @@ export async function sendSms<
TemplateId: template.code,
TemplateParamSet: templateParamSet as string[],
});
const sendStatus = data.SendStatusSet[0];
const sendStatus = data.SendStatusSet![0];
if (sendStatus.Code === 'Ok') {
return true;
}