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
|
@@ -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
|
-
|
|
92
|
-
|
|
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;
|
|
@@ -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 = '
|
|
4
|
+
let tokenValue = '5bc3fbf3cafe4a6bb33860b48e839c4a';
|
|
5
5
|
axios.interceptors.response.use(
|
|
6
6
|
(response) => {
|
|
7
7
|
if (response.status === 200) {
|