module-menu-vue 0.0.67 → 0.0.68

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.67",
3
+ "version": "0.0.68",
4
4
  "description": "城市大数据平台菜单--Vue版",
5
5
  "main": "/index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  import Axios from '../Util/axios.js'
32
32
  import { userMenuIcon } from './constant.js'
33
33
  import { getUserName } from './../Util/userInfo.js'
34
- import { integrationLogout } from './service.js'
34
+ import { integrationLogout, getSysUrl } from './service.js'
35
35
  import {getMenuList} from '../Menu/service.js'
36
36
  export default {
37
37
  name: 'UserInfo',
@@ -88,8 +88,19 @@ export default {
88
88
  url = this.stash === "integration" ? '/admin-ui/data-share-portal/personal/info' : '/#/info/index'
89
89
  location.href = url;
90
90
  } else if (flag === 'systerm') {
91
- url = this.stash === "integration" ? '/admin-ui/bpm/manager/user-group' : '/#/admin/user/index'
92
- location.href = url;
91
+ if (this.stash === "integration") {
92
+ // 查询 系统管理 需要跳转的页面
93
+ getSysUrl().then(rsp => {
94
+ const data = rsp.data.data
95
+ if (data) {
96
+ location.href = '/admin-ui' + data.path
97
+ }
98
+ }).catch(e => {
99
+ console.error('getSysUrl 接口异常: ', e)
100
+ })
101
+ } else {
102
+ location.href = '/#/admin/user/index'
103
+ }
93
104
  } else if (flag === 'app') {
94
105
  url = '/dataadmin/#/appSystem/index'
95
106
  location.href = url;
@@ -13,3 +13,9 @@ export async function compactLogout() {
13
13
  method: 'delete'
14
14
  })
15
15
  }
16
+ // 获取到要跳转的系统管理路径
17
+ export const getSysUrl = () => {
18
+ return request('/admin-api/system/auth/homePage', {
19
+ method: 'get'
20
+ })
21
+ }
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios';
2
2
  import getStore from './userInfo';
3
3
  import { checkToken } from './permessionUtils';
4
- let tokenValue = 'be1f9416ecb34c8492944618834514c2';
4
+ let tokenValue = '5bc3fbf3cafe4a6bb33860b48e839c4a';
5
5
  axios.interceptors.response.use(
6
6
  (response) => {
7
7
  if (response.status === 200) {