module-menu 0.2.10 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -72,7 +72,7 @@ const ModuleMenu = ({ sysName, stash }) => {
72
72
  Axios('get', '/admin/social/logoutUri', '', {})
73
73
  .then((res) => {
74
74
  if (res.data.code === 0) {
75
- if (res.data.data !== '1') {
75
+ if (res.data.data.search('http') !== -1) {
76
76
  window.location.href = res.data.data;
77
77
  }
78
78
  } else {
@@ -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='7112f7c33eb24011a97d88ceaa285b9e';
7
+ let tokenValue='dfd39d55-4c49-4862-8400-46f2a57f25ac';
8
8
  // tokenInSessionStor存在为一体化,不存在为轻量级
9
9
  const tokenInSessionStor = window.sessionStorage.getItem('bigdata-access_token');
10
10
  const DEFAULT_LOGOUT_URL = tokenInSessionStor? '/#/login':'/admin-ui/login'
@@ -103,7 +103,7 @@ function Axios(method, api, params, map) {
103
103
  } else if (api === '/admin/social/logoutUri') {
104
104
  httpDefult = {
105
105
  method: method,
106
- url: api,
106
+ url: `${baseCof.baseSever}${api}`,
107
107
  params: params,
108
108
  ...map,
109
109
  };