首页
我有Bug
热爱分享
作品展示
喜欢
干货分享
登录
注册
首页
>
我的BUG
>
前端
>
报错:Cannot read property ‘push‘...
回复
« 返回列表
小达人
侠客
最后登录
2021-07-30
发帖数
1
加关注
写私信
阅读:
4789
回复:
0
[react]
报错:Cannot read property ‘push‘ of undefined
楼主
#
更多
只看楼主
倒序阅读
发布于:2021-05-06 13:55
保存
在react项目中进行路由跳转this.props.history.push('/accountManage');
报以下错误:
Cannot read property ‘push‘ of undefined
解决:
import
{withRouter}
from
'react-router-dom'
class
AddAccount
extends
Component{
}
export default
withRouter(AddAccount)
喜欢
0
最新喜欢:
回复
发帖
回复
« 返回列表
普通帖
您需要登录后才可以回帖,
登录
或者
注册
返回顶部
公众号
关闭
最新喜欢