module-menu-vue 0.3.10 → 0.3.11
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
|
@@ -147,9 +147,6 @@ export default {
|
|
|
147
147
|
async logoutFunc () {
|
|
148
148
|
console.log('开始调用退出接口...')
|
|
149
149
|
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
150
|
-
console.log('====================================');
|
|
151
|
-
console.log(111);
|
|
152
|
-
console.log('====================================');
|
|
153
150
|
await integrationLogout();
|
|
154
151
|
await this.logoutUrl()
|
|
155
152
|
} else {
|
|
@@ -171,9 +168,6 @@ export default {
|
|
|
171
168
|
}
|
|
172
169
|
},
|
|
173
170
|
async logoutUrl() {
|
|
174
|
-
console.log('====================================');
|
|
175
|
-
console.log(222);
|
|
176
|
-
console.log('====================================');
|
|
177
171
|
localStorage.clear();
|
|
178
172
|
sessionStorage.clear();
|
|
179
173
|
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
@@ -27,8 +27,8 @@ export const checkToken = async (token) => {
|
|
|
27
27
|
}});
|
|
28
28
|
} else {
|
|
29
29
|
const url = stash === 'GZW' ? `/data-platform/auth/oauth/check_token?token=${token}` : `/auth/oauth/check_token?token=${token}`
|
|
30
|
-
Axios(
|
|
31
|
-
|
|
30
|
+
Axios(url, 'get')
|
|
31
|
+
.then().catch(() =>{
|
|
32
32
|
this.$message.error({content:'用户凭证已过期,请重新登录', onClose: ()=>{
|
|
33
33
|
localStorage.clear();
|
|
34
34
|
sessionStorage.clear();
|
|
@@ -41,7 +41,7 @@ export const checkToken = async (token) => {
|
|
|
41
41
|
// 获取登录地址信息
|
|
42
42
|
export function getLoginUrl() {
|
|
43
43
|
return Axios(
|
|
44
|
-
'get',
|
|
45
44
|
'/admin-api/system/auth/getCodeUrl',
|
|
45
|
+
'get',
|
|
46
46
|
)
|
|
47
47
|
}
|