module-menu 0.2.52-dev-hubjt.2 → 0.2.52-dev-hubjt.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/config.js +25 -3
- package/package.json +1 -1
- package/src/pages/index.jsx +2 -2
- package/src/pages/util/axios.js +1 -1
- package/src/pages/util/config.js +1 -1
package/config/config.js
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
// https://umijs.org/config/
|
|
2
2
|
import { defineConfig } from 'umi';
|
|
3
|
-
import proxy from './proxy';
|
|
4
|
-
const { REACT_APP_ENV } = process.env;
|
|
5
3
|
export default defineConfig({
|
|
6
|
-
proxy:
|
|
4
|
+
proxy: {
|
|
5
|
+
// localhost:8000/cmcc/data/** -> http://192.168.108.88:30808/cmcc/data/**
|
|
6
|
+
'/cmcc/data/': {
|
|
7
|
+
// 要代理的地址
|
|
8
|
+
target: 'http://192.168.108.86:30808',
|
|
9
|
+
// target: 'http://10.136.106.82:30808',
|
|
10
|
+
// target: 'http://192.168.200.122:28088',
|
|
11
|
+
// target: 'http://10.136.106.148:32678',
|
|
12
|
+
// target: 'http://10.136.106.206:30808',
|
|
13
|
+
// 配置了这个可以从 http 代理到 https
|
|
14
|
+
// 依赖 origin 的功能可能需要这个,比如 cookie
|
|
15
|
+
changeOrigin: true,
|
|
16
|
+
},
|
|
17
|
+
'/admin/': {
|
|
18
|
+
// 要代理的地址
|
|
19
|
+
target: 'https://192.168.108.86:30011',
|
|
20
|
+
// target: 'http://10.136.106.82:30808',
|
|
21
|
+
// target: 'http://192.168.200.122:28088',
|
|
22
|
+
// target: 'http://10.136.106.148:32678',
|
|
23
|
+
// target: 'http://10.136.106.206:30808',
|
|
24
|
+
// 配置了这个可以从 http 代理到 https
|
|
25
|
+
// 依赖 origin 的功能可能需要这个,比如 cookie
|
|
26
|
+
changeOrigin: true,
|
|
27
|
+
},
|
|
28
|
+
}
|
|
7
29
|
});
|
package/package.json
CHANGED
package/src/pages/index.jsx
CHANGED
package/src/pages/util/axios.js
CHANGED
|
@@ -4,7 +4,7 @@ import baseCof from './config';
|
|
|
4
4
|
import getStore from './userInfo';
|
|
5
5
|
import { checkToken} from './permessionUtils';
|
|
6
6
|
|
|
7
|
-
let tokenValue='
|
|
7
|
+
let tokenValue='5de3ef8171364d6ba756221655fe1310';
|
|
8
8
|
// 轻量级tokenInSessionStor存在(GZW跳/data-platform/#/login,否则/#/login),一体化tokenInSessionStor不存在
|
|
9
9
|
const tokenInSessionStor = window.sessionStorage.getItem('bigdata-access_token');
|
|
10
10
|
// stash=GZW为轻量级国资委 stash=integration 为一体化,其余为其他轻量级
|
package/src/pages/util/config.js
CHANGED