失效的情况:
<Link to={{pathname:'/gui/collection',query:{databaseName:item.name}}} target="_blank">
查询
</Link>
解决方案:
<Link to={{pathname:`/gui/collection?databaseName=${item.name}`}} target="_blank">
查询
</Link>
取出参数:
const { location} = this.props;
console.log(location.query.databaseName)