wiz-frameworks
Version:
wizlong react framework
16 lines (13 loc) • 386 B
JavaScript
import { component_tool, utils_tool } from '../../tool';
var WizNotice = component_tool.WizNotice;
var log = utils_tool.log;
export default (function (err, dispatch) {
var errName = err.name;
// RequestError为拦截请求异常
if (errName === 'RequestError') {
WizNotice.error(err.message);
log.error(err);
} else {
log.error(err);
}
});