Renascence

Results comments of Renascence

如果你使用的是第三方组件,先看看有没有提供重置的方法,例如antd的modal 组件和form组件 [https://ant.design/components/modal-cn/#清空旧数据](https://ant.design/components/modal-cn/#清空旧数据) [https://ant.design/components/form-cn/](https://ant.design/components/form-cn/) 如果是自己实现的组件,可以这么写 this.state.A? : '' 强制让组件重新挂载,清空里面的state

看你在哪获取,组件里面获取到数据可以调用dispatch,models里面也可以

多级路由是这样: ``` { path: '/posts/:type/:component/:post', dataPath: '/:type/:component/:post', component: './template/Post', } ```