module-menu-vue 0.3.8 → 0.3.10
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,6 +147,9 @@ 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('====================================');
|
|
150
153
|
await integrationLogout();
|
|
151
154
|
await this.logoutUrl()
|
|
152
155
|
} else {
|
|
@@ -168,12 +171,15 @@ export default {
|
|
|
168
171
|
}
|
|
169
172
|
},
|
|
170
173
|
async logoutUrl() {
|
|
174
|
+
console.log('====================================');
|
|
175
|
+
console.log(222);
|
|
176
|
+
console.log('====================================');
|
|
171
177
|
localStorage.clear();
|
|
172
178
|
sessionStorage.clear();
|
|
173
179
|
if (["integration", 'LNRD', 'HBJK'].includes(this.stash)) {
|
|
174
180
|
await getLoginUrl()
|
|
175
181
|
.then((res) => {
|
|
176
|
-
if (res
|
|
182
|
+
if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
|
|
177
183
|
console.log('Login URL found:', res.data.data.loginoutUrl);
|
|
178
184
|
window.location.replace(res.data.data.loginoutUrl);
|
|
179
185
|
} else {
|
|
@@ -12,7 +12,7 @@ export const checkToken = async (token) => {
|
|
|
12
12
|
sessionStorage.clear();
|
|
13
13
|
getLoginUrl()
|
|
14
14
|
.then((res) => {
|
|
15
|
-
if (res
|
|
15
|
+
if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
|
|
16
16
|
console.log('Login URL found:', res.data.data.loginoutUrl);
|
|
17
17
|
window.location.replace(res.data.data.loginoutUrl);
|
|
18
18
|
} else {
|