model.ts 306 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { message } from 'antd';
import { fakeSubmitForm } from './service';

export default {
  namespace: 'BLOCK_NAME_CAMEL_CASE',

  state: {},

  effects: {
    *submitAdvancedForm({ payload }, { call }) {
      yield call(fakeSubmitForm, payload);
      message.success('提交成功');
    },
  },
};