提交 b9cfc39e authored 作者: vipcxj's avatar vipcxj

improve: 为了尽可能兼容app的api,提取fetch到polyfill

上级 f9fe1fe7
import fetch from 'dva/fetch';
import _ from 'lodash';
import { fetch } from './polyfill';
import { encrypt } from './helper';
import { errors } from './error';
import { getToken } from './auth';
......
/* eslint-disable */
export const fetch = require('dva/fetch');
/* eslint-disable no-param-reassign */
import fetch from 'dva/fetch';
import _ from 'lodash';
import { fetch } from './polyfill';
import { encrypt } from './helper';
import { checkStatus, normParams, parseObject } from './http-helper';
import { getToken } from './auth';
......
import fetch from 'dva/fetch';
import _ from 'lodash';
import { fetch } from './polyfill';
import { encrypt } from './helper';
import { getToken } from './auth';
import { errors } from './error';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论