Commit d32d460a authored by xiaohu's avatar xiaohu

use global store

parent d9a965be
...@@ -4,9 +4,8 @@ import { routerRedux } from 'dva/router'; ...@@ -4,9 +4,8 @@ import { routerRedux } from 'dva/router';
// TODO set store // TODO set store
// import store from '../global'; // import store from '../global';
const store = { // use global store
dispatch: () => {}, const store = window.g_app._store
};
const codeMessage = { const codeMessage = {
200: '服务器成功返回请求的数据。', 200: '服务器成功返回请求的数据。',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment