diff --git a/src/utils/request.js b/src/utils/request.js index efe1c532413437333a288976167224ea917ac074..b094a12c728f7b8b05baaaa7b2cb85cf35bf442e 100644 --- a/src/utils/request.js +++ b/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: '服务器成功返回请求的数据。',