epmp-cli
Version:
A simple init for epm scaffolding projects.
24 lines (20 loc) • 552 B
JavaScript
/**
* @file 该js文件用于对后端返回的数据进行相关业务处理,通过调用model.js提供的 effects 拉取后端数据!
*/
import { actions } from 'mirrorx';
import EpmpUtils from 'EpmpUtils';
import { TOAST_COLOR, LIST } from '../../constant';
const { _toast } = EpmpUtils;
const { page_code } = LIST;
/**
* @method 查询
*/
export async function queryBusi(params = {}) {
let res = await actions[page_code].query(params);
let { success, data } = res;
if (success) {
// ...
} else {
// ...
}
}