Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Taro3.0 怎么获取$router, 继承从Taro.Component变成了React.Component 找个就获取不了了
const { router } = getCurrentInstance() this.setState({ roomId: router.params.roomId, roomStatusId: router.params.roomStatusId }, () => { this.initData() })