module-menu 0.2.44 → 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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.2.44",
3
+ "version": "0.2.47",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -106,7 +106,7 @@ const ModuleMenu = ({ sysName, stash = '' }) => {
106
106
  }
107
107
  res = await getUrlByInfo(obj)
108
108
  return res.data.data
109
- },
109
+ };
110
110
 
111
111
 
112
112
  // 跳转各个模块
@@ -195,10 +195,10 @@ const ModuleMenu = ({ sysName, stash = '' }) => {
195
195
  thirdPartyServiceJumpPath = '/datatag/';
196
196
  break;
197
197
  case '数据可视化':
198
- thirdPartyServiceJumpPath = await this.getUrl('dataview')
198
+ thirdPartyServiceJumpPath = await getUrl('dataview')
199
199
  break;
200
200
  case '数据填报':
201
- thirdPartyServiceJumpPath = await this.getUrl('datafill')
201
+ thirdPartyServiceJumpPath = await getUrl('datafill')
202
202
  break;
203
203
  default:
204
204
  break;
@@ -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='a39090d9-bf94-4342-9a1d-1b885cc5385b';
8
- // tokenInSessionStor存在为一体化,不存在为轻量级(GZW跳/data-platform/#/login,否则/#/login
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
  }