From d32d460a675c8a7ae8275ede4da31483aefba917 Mon Sep 17 00:00:00 2001 From: xiaohu <448627663@qq.com> Date: Sat, 7 Jul 2018 11:54:49 +0800 Subject: [PATCH] use global store --- src/utils/request.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index efe1c532..b094a12c 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: '服务器成功返回请求的数据。', -- GitLab