module-menu 0.2.45 → 0.2.47
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 +4 -2
- package/package.json +1 -1
- package/src/.umi/.cache/babel-loader/06c57771ddb7aac2de0fa65fa8fd50e6.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/0a1b5aca0757c3dd30af80dfefc28735.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/0c298122cd554ff35f13559f2c4a4edc.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/36693a087bf7605bf44c4b66b807dcf3.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/467a3b586730b2979e0ac24e08fcca2b.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/4a3d52bca62ce367c82417dfbaf2e6bd.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/81225aaa9369a0f68f7a42ad92252d75.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/8b05c361453956571d1660acc767f6bb.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/9c8d2e536adfe3b3a75387f0e81718b0.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/b759b7ade181cffc9c9696a13796d1c2.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/d60ea8fbb8fc7d215a995d7bd1242ccb.json.gz +0 -0
- package/src/pages/ModuleMenu/index.jsx +2 -2
- package/src/pages/util/axios.js +3 -3
package/config/config.js
CHANGED
|
@@ -5,7 +5,8 @@ export default defineConfig({
|
|
|
5
5
|
// localhost:8000/cmcc/data/** -> http://192.168.108.88:30808/cmcc/data/**
|
|
6
6
|
'/cmcc/data/': {
|
|
7
7
|
// 要代理的地址
|
|
8
|
-
target: 'http://192.168.108.86:30808',
|
|
8
|
+
// target: 'http://192.168.108.86:30808',
|
|
9
|
+
target: 'http://192.168.108.203:31772',
|
|
9
10
|
// target: 'http://10.136.106.82:30808',
|
|
10
11
|
// target: 'http://192.168.200.122:28088',
|
|
11
12
|
// target: 'http://10.136.106.148:32678',
|
|
@@ -16,7 +17,8 @@ export default defineConfig({
|
|
|
16
17
|
},
|
|
17
18
|
'/admin/': {
|
|
18
19
|
// 要代理的地址
|
|
19
|
-
target: 'https://192.168.108.86:30011',
|
|
20
|
+
// target: 'https://192.168.108.86:30011',
|
|
21
|
+
target: 'https://192.168.108.203:31950',
|
|
20
22
|
// target: 'http://10.136.106.82:30808',
|
|
21
23
|
// target: 'http://192.168.200.122:28088',
|
|
22
24
|
// target: 'http://10.136.106.148:32678',
|
package/package.json
CHANGED
|
@@ -195,10 +195,10 @@ const ModuleMenu = ({ sysName, stash = '' }) => {
|
|
|
195
195
|
thirdPartyServiceJumpPath = '/datatag/';
|
|
196
196
|
break;
|
|
197
197
|
case '数据可视化':
|
|
198
|
-
thirdPartyServiceJumpPath = await
|
|
198
|
+
thirdPartyServiceJumpPath = await getUrl('dataview')
|
|
199
199
|
break;
|
|
200
200
|
case '数据填报':
|
|
201
|
-
thirdPartyServiceJumpPath = await
|
|
201
|
+
thirdPartyServiceJumpPath = await getUrl('datafill')
|
|
202
202
|
break;
|
|
203
203
|
default:
|
|
204
204
|
break;
|
package/src/pages/util/axios.js
CHANGED
|
@@ -4,8 +4,8 @@ import baseCof from './config';
|
|
|
4
4
|
import getStore from './userInfo';
|
|
5
5
|
import { checkToken} from './permessionUtils';
|
|
6
6
|
|
|
7
|
-
let tokenValue='
|
|
8
|
-
// tokenInSessionStor
|
|
7
|
+
let tokenValue='5de3ef8171364d6ba756221655fe1310';
|
|
8
|
+
// 轻量级tokenInSessionStor存在(GZW跳/data-platform/#/login,否则/#/login),一体化tokenInSessionStor不存在
|
|
9
9
|
const tokenInSessionStor = window.sessionStorage.getItem('bigdata-access_token');
|
|
10
10
|
// stash=GZW为轻量级国资委 stash=integration 为一体化,其余为其他轻量级
|
|
11
11
|
const stash = localStorage.getItem('stash')
|
|
@@ -16,7 +16,7 @@ axios.interceptors.response.use(
|
|
|
16
16
|
return response;
|
|
17
17
|
} else if (response.status === 401 || response.status === 302 || response.status === 403) {
|
|
18
18
|
// 一体化需要调接口判断token是否过期,轻量级直接退出
|
|
19
|
-
if(tokenInSessionStor){
|
|
19
|
+
if(!tokenInSessionStor){
|
|
20
20
|
if (process.env.NODE_ENV === 'production') {
|
|
21
21
|
tokenValue = getStore({ name: 'access_token' });
|
|
22
22
|
}
|