When type is 1, the ‘Action’ column is not displayed

This. Columns = [{title: 'Name ', dataIndex: 'xm', key: 'xm',}, {title:' Action ', dataIndex: 'handle', key: 'handle', }, ].filter((item)=>{ if(this.state.type==1){ return item.title! }else{return item}})

In < Table columns = {this. Columns. The filter ((item) = > {

if(this.state.type==1){ return item.title! =" operation "}else{return item}}} is executed according to the state type change