当这样调用动作时。props.getCurrentProfile()我得到的这不是一个函数。但是我之前和在同一应用程序中都使用过这种语法,但是在这些应用程序上我没有任何错误。调用action时,我不会在新组件上遇到相同的错误。
enter image description here 这是我遇到错误的组件。但我是我称之为this.props.xxx();
的每个组件enter image description here 这是我的动作文件
enter image description here 这是我得到的错误。