User.js 262 Bytes
Newer Older
yangfangfang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import {USER_INFO} from '@/actions/index'

let User = (state = {code:''},action) => {
  switch (action.type) {
    case USER_INFO:
      return {
        name: action.name,
        code: 'ADD'
      }
    default:
      return state;
  }
}

export default User;