Browse Source

use global store

pull/1774/head
xiaohu 8 years ago
parent
commit
d32d460a67
  1. 5
      src/utils/request.js

5
src/utils/request.js

@ -4,9 +4,8 @@ import { routerRedux } from 'dva/router';
// TODO set store
// import store from '../global';
const store = {
dispatch: () => {},
};
// use global store
const store = window.g_app._store
const codeMessage = {
200: '服务器成功返回请求的数据。',

Loading…
Cancel
Save