diff --git a/lib/pages/article/upsert/web.js b/lib/pages/article/upsert/web.js index ccc0ddce9..025868f49 100644 --- a/lib/pages/article/upsert/web.js +++ b/lib/pages/article/upsert/web.js @@ -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, diff --git a/src/utils/sms.ts b/src/utils/sms.ts index 29ce7180d..e2366e25b 100644 --- a/src/utils/sms.ts +++ b/src/utils/sms.ts @@ -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; }