dva 同时调用多个函数
2019-11-22 本文已影响0人
奋斗的小小小兔子
dva 同时调用多个函数
const {
componentListData: { data: componentList = [] },
customTags: { data: customTags = [] },
computeKeys = [],
jumpUrls
} = yield all({
componentListData: yield call(service.loadComponents),
customTags: yield call(service.loadCustomTag),
computeKeys: yield call(service.loadComputeKeyList),
jumpUrls: yield call(service.loadLinkUrl),
});