module-menu 0.2.45 → 0.2.48

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.45",
3
+ "version": "0.2.48",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
Binary file
@@ -50,6 +50,11 @@ export const menuList = (stash = '') => [
50
50
  path: "/indicator",
51
51
  url: require('../../assets/dataApp/indicator.png'),
52
52
  },
53
+ {
54
+ childName: "知识图谱",
55
+ path: "/knowledge",
56
+ url: require('../../assets/ic_zhishitupu.png'),
57
+ }
53
58
  ],
54
59
  },
55
60
  {
@@ -133,12 +133,15 @@ const ModuleMenu = ({ sysName, stash = '' }) => {
133
133
  message.error('服务器错误,请稍后重试');
134
134
  });
135
135
  } else {
136
- if (nameStr === '平台运行总览') {
137
- window.open('/dataadmin/#/overview', '_blank');
138
- return;
136
+ if (nameStr === '知识图谱') {
137
+ window.open('http://192.168.113.246:4001', '_blank')
138
+ return
139
139
  }
140
140
  let thirdPartyServiceJumpPath = ''; // 第三方服务跳转路径
141
141
  switch (nameStr) {
142
+ case '平台运行总览':
143
+ window.open('/dataadmin/#/overview', '_blank');
144
+ return;
142
145
  case '数据集成':
143
146
  thirdPartyServiceJumpPath = '/datacollect/';
144
147
  break;
@@ -195,10 +198,10 @@ const ModuleMenu = ({ sysName, stash = '' }) => {
195
198
  thirdPartyServiceJumpPath = '/datatag/';
196
199
  break;
197
200
  case '数据可视化':
198
- thirdPartyServiceJumpPath = await this.getUrl('dataview')
201
+ thirdPartyServiceJumpPath = await getUrl('dataview')
199
202
  break;
200
203
  case '数据填报':
201
- thirdPartyServiceJumpPath = await this.getUrl('datafill')
204
+ thirdPartyServiceJumpPath = await getUrl('datafill')
202
205
  break;
203
206
  default:
204
207
  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
  }