登录封装

This commit is contained in:
2022-05-09 10:03:23 +08:00
parent 16ba165fec
commit 5bae62d34d
15 changed files with 2400 additions and 30 deletions
+24
View File
@@ -0,0 +1,24 @@
import { GETUSER, SETUSER } from '../constants/userInfo'
const INIT_USER = {
name: '张三',
phone: '110',
avatarUrl: '',
token: '',
}
export default function counter (state = INIT_USER, action) {
switch (action.type) {
case GETUSER:
return {
...state,
}
case SETUSER:
return {
...state,
}
default:
return state
}
}