module-menu-vue 0.0.56 → 0.0.58
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 +1 -1
- package/src/components/Menu/ModuleMenu.vue +24 -12
- package/src/components/Menu/constant.js +1 -1
- package/src/components/Menu/menu.css +2 -2
- package/src/components/Menu/service.js +1 -1
- package/src/components/User/UserInfo.vue +0 -1
- package/src/components/Util/axios.js +1 -1
package/package.json
CHANGED
|
@@ -87,23 +87,27 @@ export default {
|
|
|
87
87
|
},
|
|
88
88
|
methods: {
|
|
89
89
|
toHref () {
|
|
90
|
-
if (this.sysName === 'admin') {
|
|
91
|
-
location.href =
|
|
90
|
+
if (this.sysName === 'admin' && this.stash !== "integration") {
|
|
91
|
+
location.href = '/#/admin/user/index'
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
async getSessionMenu () {
|
|
95
95
|
// 一体化
|
|
96
96
|
if (this.stash === "integration") {
|
|
97
97
|
const rsp = await getMenuList()
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
const rspData = rsp.data.data
|
|
99
|
+
if (rspData && rspData.length > 0) {
|
|
100
|
+
const routesList = rspData[0].routes
|
|
101
|
+
if (rsp.data.data) {
|
|
102
|
+
const pathList = routesList.map(item => {
|
|
103
|
+
return {
|
|
104
|
+
...item,
|
|
105
|
+
path: item.path.indexOf('/') === -1 ? '/' + item.path : item.path
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
this.sessionMenu = [...pathList]
|
|
109
|
+
this.getNewMenuList();
|
|
110
|
+
}
|
|
107
111
|
}
|
|
108
112
|
} else {
|
|
109
113
|
// 轻量级
|
|
@@ -119,7 +123,15 @@ export default {
|
|
|
119
123
|
let logoAndTitle = { logoSrc: "", title: "" };
|
|
120
124
|
if (sysInfo) {
|
|
121
125
|
logoAndTitle.logoSrc = sysInfo.logoSrc;
|
|
122
|
-
|
|
126
|
+
if (this.sysName === 'admin') {
|
|
127
|
+
if (this.stash === "integration") {
|
|
128
|
+
// logoAndTitle.title = location.href.indexOf('/appSystem/index') !== -1 ? '应用系统管理' : '数据源管理'
|
|
129
|
+
} else {
|
|
130
|
+
logoAndTitle.title = sysInfo.title;
|
|
131
|
+
}
|
|
132
|
+
} else {
|
|
133
|
+
logoAndTitle.title = sysInfo.title;
|
|
134
|
+
}
|
|
123
135
|
}
|
|
124
136
|
return logoAndTitle;
|
|
125
137
|
},
|
|
@@ -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 = '39e212bf726b439180dadb352a57a8c9';
|
|
5
5
|
axios.interceptors.response.use(
|
|
6
6
|
(response) => {
|
|
7
7
|
if (response.status === 200) {
|