import { login } from '../services'; const initData = {}; export default { namespace: 'userLogin', state: { ...initData, }, effects: { *login({ payload }, { call }) { const res = yield call(login, payload); return res; }, }, reducers: { clearData: () => ({ ...initData }), }, };