Replies: 1 comment
-
还有一种稍微优雅点的写法,示例代码如下: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在models的reducers方法内,返回新的state,因为对state进行了取值,state的类型有undefined的属性,导致每次要判断state 很麻烦,有没有方法能解决?
下面是问题示例代码:
下面是解决示例代码:
Beta Was this translation helpful? Give feedback.
All reactions