How to insert a picture in ant design table and get src? dynamically

insert the src in the image tag as described in the question, hoping to get the field in the database

{

            title: formatMessage({id: "from.feedBack.tanleList.Report_image1_data"}),
            dataIndex: "Report_image1_date",
            sorter: false,
            width: 80,
            key:"imgdata",
            render:imgdata=>(
                    <image src="Report_image1_date">  </image>
                )
Dec.06,2021

provides an idea. Send a request to get the image address, which is stored in the state of the component. When rendering the picture, just take the picture address from the state

.
async componentDidMount(){
    const response= await axios.get('')
    this.setState({imgUrl:response.data})
}
{
title: formatMessage({id: 'from.feedBack.tanleList.Report_image1_data'}),
dataIndex: 'Report_image1_date',
sorter: false,
width: 80,
key:'imgdata',
render:imgdata=>{
    const {ingUrl}=this.state
    return <img src={ingUrl}>  </img>
    }
}

so the question is, Why is the picture address not returned with the table data?

Menu