TS2739 Type is missing the following properties from type Readonly history location match
工程中报如下错误:解决方案:引入 withRouter,将组件包裹目的就是让被修饰的组件可以从属性中获取history,location,match,路由组件可以直接获取这些属性,而非路由组件就必须通过withRouter修饰后才能获取这些属性了...
原创
2019-12-02 16:37:20 ·
9265 阅读 ·
0 评论