Merge branch '20230625-动态防护-weboffice文件名处理' into 'release_20230714'

7.14 动态防护 weboffice文件名处理

See merge request eshop/fe_service_ebtp_frontend!307
This commit is contained in:
jl-zhoujl2
2023-07-14 03:15:06 +00:00
6 changed files with 12 additions and 10 deletions

View File

@ -188,9 +188,6 @@ const BraftText: React.FC<WangType> = (props) => {
/**一定要创建 */
editor.create();
//控制是否可编辑
disabled && makeDis();
willCreate = false;
}
@ -202,6 +199,11 @@ const BraftText: React.FC<WangType> = (props) => {
}
}, []);
useEffect(() => {
//控制是否可编辑
disabled && makeDis();
}, [disabled])
useEffect(() => {
// 重新设置编辑器内容
echo && editor.txt.html(echo);
@ -240,7 +242,7 @@ const BraftText: React.FC<WangType> = (props) => {
//不可编辑
function makeDis() {
editor.disable();
editor && editor.disable();
}
//form取值