fix: article/upsert在点击保存按钮时更新article的content
This commit is contained in:
parent
706ea27664
commit
f66fc76c01
|
|
@ -155,6 +155,9 @@ export default function Render(props) {
|
|||
<div className={Style.footer}>
|
||||
<Space>
|
||||
<Button disabled={oakLoading || oakExecuting || !(data.name && data.name.length > 0 && html && html.length > 0 && html !== '<p><br></p>')} type="primary" onClick={() => {
|
||||
update({
|
||||
content: html,
|
||||
});
|
||||
check();
|
||||
}}>
|
||||
保存
|
||||
|
|
|
|||
|
|
@ -333,6 +333,9 @@ export default function Render(
|
|||
disabled={oakLoading || oakExecuting || !(data.name && data.name.length > 0 && html && html.length > 0 && html !== '<p><br></p>')}
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
update({
|
||||
content: html,
|
||||
})
|
||||
check();
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue