Commit e8552565 by zhaochengxiang

微前端通讯问题

parent e7c4693e
import { createStore, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
import { all, call, takeLatest, takeEvery } from 'redux-saga/effects'
import { all, call, takeLatest, takeEvery, delay } from 'redux-saga/effects'
import { Connect, showErrorNotifaction } from '../util';
import { reducers } from './reducer';
......@@ -16,6 +16,7 @@ function* request(args) {
const { type, payload, callback, error } = args.args;
try {
yield delay(100);
const rs = yield call(funcs[type], payload)
if (callback)
yield call(callback, rs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment