module-menu-vue 0.0.84 → 0.0.86
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
|
@@ -66,6 +66,11 @@ export default {
|
|
|
66
66
|
if (this.stash === 'integration') {
|
|
67
67
|
this.isShowAppFunc()
|
|
68
68
|
}
|
|
69
|
+
if (this.stash === 'GZW') {
|
|
70
|
+
localStorage.setItem('stash', 'GZW')
|
|
71
|
+
} else {
|
|
72
|
+
localStorage.removeItem('stash')
|
|
73
|
+
}
|
|
69
74
|
},
|
|
70
75
|
methods: {
|
|
71
76
|
async isShowAppFunc() {
|
|
@@ -108,7 +113,7 @@ export default {
|
|
|
108
113
|
}
|
|
109
114
|
})
|
|
110
115
|
}
|
|
111
|
-
location.href = `/#${systemPath}`
|
|
116
|
+
location.href = this.stash === "GZW" ? `/data-platform/#${systemPath}` : `/#${systemPath}`
|
|
112
117
|
}
|
|
113
118
|
} else if (flag === 'app') {
|
|
114
119
|
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
|
-
|
|
15
|
+
const stash = localStorage.getItem('stash')
|
|
16
|
+
const url = stash === '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();
|
|
@@ -63,6 +63,7 @@ export const getUserName = () => {
|
|
|
63
63
|
} else {
|
|
64
64
|
const userInfo = getStore({ name: 'userInfo' });
|
|
65
65
|
if (userInfo && Object.keys(userInfo).length > 0 && userInfo.username) {
|
|
66
|
+
console.log('username', userInfo.username)
|
|
66
67
|
return userInfo.username;
|
|
67
68
|
}
|
|
68
69
|
return '';
|