| @@ -8,6 +8,6 @@ | |||
| </head> | |||
| <body> | |||
| <div id="root"></div> | |||
| <script src="/umi.745f16d0.js"></script> | |||
| <script src="/umi.8c0465bb.js"></script> | |||
| </body> | |||
| </html> | |||
| @@ -6,9 +6,11 @@ type RichModelProps = { | |||
| placeholder: string | number; | |||
| onChange : (values: object) => void; | |||
| }; | |||
| const RichComponent: React.FC<RichModelProps> = ({ defaultValue,placeholder, onChange }) => { | |||
| const [editorValue, setEditorValue] = useState(defaultValue); | |||
| import he from 'he'; | |||
| const RichComponent: React.FC<RichModelProps> = ({ defaultValue,placeholder, onChange }) => { | |||
| const [editorValue, setEditorValue] = useState(he.decode(defaultValue)); | |||
| const handleChange = (content) => { | |||
| setEditorValue(content); | |||
| onChange(content); | |||
| @@ -18,7 +18,7 @@ import { Imageprefix } from '@/constants'; | |||
| import UploadModel from '@/components/Common/upload'; | |||
| import DragUpload from '@/components/Common/dragupload'; | |||
| import RichComponent from '@/components/Common/rich'; | |||
| import he from 'he'; | |||
| import { isArrayOfType } from '@/utils/dataHelper'; | |||
| @@ -74,6 +74,7 @@ const PagesMainInformationArticleCreate: React.FC = ({ dispatch, dictModel, open | |||
| let res = await GetArticleDetail({ id: id }) | |||
| setUploadedFilephotoName(res.data.cover_img) | |||
| res.data.section_arr = [res.data.section_name] | |||
| setDetail(res.data) | |||
| return res.data; | |||
| } else { | |||