scenario is as follows:
Route-sharpbase to an information filling page, and only upload the image. After the image is uploaded successfully, when you switch to-sharphome, and then to-sharpbase page, the picture still exists. From a business point of view, when you switch back to-sharpbase again, the head_ Picture value is empty, but after react rendering, there are images on the dom.
tried setState ({head_pic: ""}) in componentDidMount and did not solve it.