module-menu-vue 0.0.83 → 0.0.84
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
|
@@ -103,8 +103,8 @@ export default {
|
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
105
|
toHref () {
|
|
106
|
-
if (this.sysName === 'admin'
|
|
107
|
-
location.href = `/#${this.systemPath}`
|
|
106
|
+
if (this.sysName === 'admin') {
|
|
107
|
+
location.href = this.stash === "GZW" ? `/data-platform/#${this.systemPath}` : this.stash !== "integration" ? `/#${this.systemPath}` : ''
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
async getSessionMenu () {
|
|
@@ -228,7 +228,7 @@ export default {
|
|
|
228
228
|
// 跳转首页
|
|
229
229
|
toHomePage (index) {
|
|
230
230
|
if (index === 0) {
|
|
231
|
-
location.href = this.stash === "integration" ? '/dataadmin/#/index' : '/#/index'
|
|
231
|
+
location.href = this.stash === "integration" ? '/dataadmin/#/index' : this.stash === "GZW" ? '/data-platform/#/index' : '/#/index'
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
getNewMenuList () {
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
handleClickmenu (flag){
|
|
86
86
|
let url = ''
|
|
87
87
|
if (flag === 'single') {
|
|
88
|
-
url = this.stash === "integration" ? '/admin-ui/data-share-portal/personal/info' : '/#/info/index'
|
|
88
|
+
url = this.stash === "integration" ? '/admin-ui/data-share-portal/personal/info' : this.stash === "GZW" ? '/data-platform/#/info/index' : '/#/info/index'
|
|
89
89
|
location.href = url;
|
|
90
90
|
} else if (flag === 'systerm') {
|
|
91
91
|
if (this.stash === "integration") {
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
await integrationLogout();
|
|
124
124
|
this.logoutUrl()
|
|
125
125
|
} else {
|
|
126
|
-
const url = this.stash === 'integration' ? '/admin-api/system/auth/logout' : '/auth/token/logout'
|
|
126
|
+
const url = this.stash === 'integration' ? '/admin-api/system/auth/logout' : this.stash === 'GZW' ? '/data-platform/auth/token/logout' : '/auth/token/logout'
|
|
127
127
|
const method = this.stash === 'integration'? 'post' : 'delete'
|
|
128
128
|
Axios(url, method).then(() => {
|
|
129
129
|
this.logoutUrl();
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
logoutUrl() {
|
|
137
137
|
localStorage.clear();
|
|
138
138
|
sessionStorage.clear();
|
|
139
|
-
location.href = this.stash === 'integration' ? '/admin-ui/login' : '/#/login'
|
|
139
|
+
location.href = this.stash === 'integration' ? '/admin-ui/login' : this.stash === 'GZW' ? '/data-platform/#/login' : '/#/login'
|
|
140
140
|
},
|
|
141
141
|
getName () {
|
|
142
142
|
return getUserName()
|
|
@@ -6,13 +6,6 @@ export const integrationLogout = () => {
|
|
|
6
6
|
})
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
// 轻量级退出登录
|
|
10
|
-
export async function compactLogout() {
|
|
11
|
-
return request({
|
|
12
|
-
url: '/auth/token/logout',
|
|
13
|
-
method: 'delete'
|
|
14
|
-
})
|
|
15
|
-
}
|
|
16
9
|
// 获取到要跳转的系统管理路径
|
|
17
10
|
export const getSysUrl = () => {
|
|
18
11
|
return request('/admin-api/system/auth/homePage', {
|