Warning: Can't call setState on a component that is not yet mounted.

报错的意思应该是因为必须在组件挂载后订阅
componentDidMount(){
        // store.subscribe(this.storeChange) //订阅
    }
posted @ 2022-06-21 02:11  SimoonJia  阅读(285)  评论(0编辑  收藏  举报