module-menu-vue 0.0.84 → 0.0.85

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-vue",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -66,6 +66,7 @@ export default {
66
66
  if (this.stash === 'integration') {
67
67
  this.isShowAppFunc()
68
68
  }
69
+ localStorage.setItem('stash', 'GZW')
69
70
  },
70
71
  methods: {
71
72
  async isShowAppFunc() {
@@ -108,7 +109,7 @@ export default {
108
109
  }
109
110
  })
110
111
  }
111
- location.href = `/#${systemPath}`
112
+ location.href = this.stash === "GZW" ? `/data-platform/#${systemPath}` : `/#${systemPath}`
112
113
  }
113
114
  } else if (flag === 'app') {
114
115
  url = '/dataadmin/#/appSystem/index'
@@ -12,7 +12,9 @@ export const checkToken = async (token) => {
12
12
  location.href = DEFAULT_LOGOUT_URL;
13
13
  }});
14
14
  } else {
15
- Axios('get',`/auth/oauth/check_token?token=${token}`, '', {} )
15
+ const flag = localStorage.getItem('stash')
16
+ const url = flag === 'GZW' ? `/data-platform/auth/oauth/check_token?token=${token}` : `/auth/oauth/check_token?token=${token}`
17
+ Axios('get', url, '', {})
16
18
  .then().catch(() =>{
17
19
  this.$message.error({content:'用户凭证已过期,请重新登录', onClose: ()=>{
18
20
  localStorage.clear();