【发布时间】:2021-11-02 19:45:52
【问题描述】:
在一个 React 项目中,我使用了react-router-dom。
我的问题是为什么在路线“/”history.push 中不起作用?
this.props.history.push({
pathname:"/searchpost",
data:data,
backg: c,
texts: " tags"+t,
});
【问题讨论】:
-
问题需要更清楚
-
@SachinAnanthakumar 路径名已包含在状态对象中。那肯定是错的。
标签: javascript reactjs laravel