在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
})
}