export default function userinfo default必须写上
2:Cannot read property 'type' of undefined 前面可以找到,操作之后,反而找不到了
import logIn from '../../reducers/LOGIN' import {logIn} from '../../reducers/LOGIN'
作为函数被引用是必须得带方括号的,组件才可以不带括号
export default function userinfo default必须写上
2:Cannot read property 'type' of undefined 前面可以找到,操作之后,反而找不到了
import logIn from '../../reducers/LOGIN' import {logIn} from '../../reducers/LOGIN'
作为函数被引用是必须得带方括号的,组件才可以不带括号