7.15 党建攻坚管理端

This commit is contained in:
jl-zhoujl2
2022-07-15 08:58:51 +08:00
parent c98f3d1a71
commit 9ab4413e88
17 changed files with 796 additions and 346 deletions

View File

@ -196,13 +196,19 @@ const BraftText: React.FC<WangType> = (props) => {
// 重新设置编辑器内容
echo && editor.txt.html(echo);
value && editor.txt.html(value);
return () => {
// 组件销毁时销毁编辑器 注class写法需要在componentWillUnmount中调用
editor.destroy()
setLoading(false);
setContent('');
}
}, [value, echo]);
}, [echo]);
useEffect(() => {
// 重新设置编辑器内容
value && editor.txt.html(value);
}, [value])
/**
*提供给父级的内容
**/