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 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: proxy[REACT_APP_ENV || 'dev'],
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.2.52-dev-hubjt.2",
3
+ "version": "0.2.52-dev-hubjt.3",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import ModuleMenu from './ModuleMenu';
2
2
  import ModuleUser from './ModuleUser';
3
3
  import Footer from './Footer';
4
- // export { ModuleMenu, ModuleUser, Footer };
5
- export default ModuleUser;
4
+ export { ModuleMenu, ModuleUser, Footer };
5
+ // export default ModuleMenu;
@@ -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='7633f3961f9f43fdb7f8cf0a9e6a553f';
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 为一体化,其余为其他轻量级
@@ -1,6 +1,6 @@
1
1
  const {origin} = window.location
2
2
  const baseCof = {
3
- baseSever: process.env.NODE_ENV === 'production' ? origin : '', // 开发环境使用相对路径,
3
+ baseSever: origin,
4
4
  basePath: process.env.NODE_ENV === 'production'?`/app/cmcc/data`:'/cmcc/data',
5
5
  };
6
6
  export default baseCof;