解决key样式的选择

This commit is contained in:
姜棚 2022-01-24 11:50:50 +08:00
parent b83ae64427
commit a240dcc77d
1 changed files with 4 additions and 3 deletions

View File

@ -97,10 +97,11 @@ export default class acclist extends React.Component{
if(this.props.keyStyle == 6)
{
this.setState({white_visible:this.props.whiteStyle})
let model = this.state.model;
model.style = this.props.keyStyle
this.setState({model:model})
}
let model = this.state.model;
model.style = this.props.keyStyle
this.setState({model:model})
}
}