在fetchIndCreate函数中调用refreshTree函数:
effects: {
*refreshTree({ payload }, { call, put }){
const datas = yield call(indTree, payload.basrsId);
const { bizdata } = datas;
yield put({
type: 'saveIndTree',
payload: bizdata,
});
},
*fetchIndCreate({ payload }, { call, put }) {
// zhongmei:新增指标
yield call(indCreate, payload);
yield put({
type:'refreshTree',
payload
})
}
作者:咕噜咕噜的车轮向前
来源:CSDN
原文:https://blog.csdn.net/zhongmei121/article/details/85126499
版权声明:本文为博主原创文章,转载请附上博文链接!