module-menu-vue 0.3.11 → 0.3.12
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
|
@@ -175,15 +175,15 @@ export default {
|
|
|
175
175
|
.then((res) => {
|
|
176
176
|
if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
|
|
177
177
|
console.log('Login URL found:', res.data.data.loginoutUrl);
|
|
178
|
-
window.location.
|
|
178
|
+
window.location.href = res.data.data.loginoutUrl;
|
|
179
179
|
} else {
|
|
180
180
|
console.log('No login URL found, redirect to default login page.');
|
|
181
|
-
window.location.
|
|
181
|
+
window.location.href = res.data.data.loginoutUrl;
|
|
182
182
|
}
|
|
183
183
|
})
|
|
184
184
|
.catch((e) => {
|
|
185
185
|
console.log('GetLoginUrl error: ', e);
|
|
186
|
-
window.location.
|
|
186
|
+
window.location.href = '/admin-ui/login';
|
|
187
187
|
});
|
|
188
188
|
return;
|
|
189
189
|
} else if (this.stash === 'GZW') {
|
|
@@ -14,15 +14,15 @@ export const checkToken = async (token) => {
|
|
|
14
14
|
.then((res) => {
|
|
15
15
|
if (res && res.data && res.data.data && res.data.data.loginoutUrl) {
|
|
16
16
|
console.log('Login URL found:', res.data.data.loginoutUrl);
|
|
17
|
-
window.location.
|
|
17
|
+
window.location.href = res.data.data.loginoutUrl;
|
|
18
18
|
} else {
|
|
19
19
|
console.log('No login URL found, redirect to default login page.');
|
|
20
|
-
window.location.
|
|
20
|
+
window.location.href = res.data.data.loginoutUrl;
|
|
21
21
|
}
|
|
22
22
|
})
|
|
23
23
|
.catch((e) => {
|
|
24
24
|
console.log('GetLoginUrl error: ', e);
|
|
25
|
-
window.location.
|
|
25
|
+
window.location.href = '/admin-ui/login';
|
|
26
26
|
});
|
|
27
27
|
}});
|
|
28
28
|
} else {
|