解决系统模板回显偶发性空白

This commit is contained in:
red-deng-deng 2022-01-21 09:40:04 +08:00
parent 2d80dfc680
commit d7da39d426
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export default class edittemplate extends React.Component{
}
}
componentDidMount(e){
componentWillMount(e){
let self=this;
let config=JSON.parse(sessionStorage.getItem('editorConfig'));
let moudTyle=sessionStorage.getItem('mouldType');
@ -48,6 +48,7 @@ export default class edittemplate extends React.Component{
this.setState({model:data});
}
getThemeType().then(res=>{
handelResponse(res,(req,msg)=>{
let typeListSource=res.data.map(it=>{
@ -251,6 +252,7 @@ export default class edittemplate extends React.Component{
render(){
console.log('白名单',this.state);
return(
<div style={{width:"92%","margin":"0 auto 60px","overflow":"auto", "maxHeight":"100%"}}>
<div style={{fontWeight:'bold'}}>基础设置</div>