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 }), }, };