module-menu 0.3.15 → 0.3.16
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
|
@@ -129,15 +129,15 @@ const ModuleUser = ({ stash = '' }) => {
|
|
|
129
129
|
.then((res) => {
|
|
130
130
|
if (res?.data?.data?.loginoutUrl) {
|
|
131
131
|
console.log('Login URL found:', res.data.data.loginoutUrl);
|
|
132
|
-
window.location.
|
|
132
|
+
window.location.href = res.data.data.loginoutUrl;
|
|
133
133
|
} else {
|
|
134
134
|
console.log('No login URL found, redirect to default login page.');
|
|
135
|
-
window.location.
|
|
135
|
+
window.location.href = '/admin-ui/login';
|
|
136
136
|
}
|
|
137
137
|
})
|
|
138
138
|
.catch((e) => {
|
|
139
139
|
console.log('GetLoginUrl error: ', e);
|
|
140
|
-
window.location.
|
|
140
|
+
window.location.href = '/admin-ui/login';
|
|
141
141
|
});
|
|
142
142
|
} else {
|
|
143
143
|
window.location.href = DEFAULT_LOGOUT_URL;
|
|
@@ -13,15 +13,15 @@ export const checkToken = (token) => {
|
|
|
13
13
|
.then((res) => {
|
|
14
14
|
if (res?.data?.data?.loginoutUrl) {
|
|
15
15
|
console.log('Login URL found:', res.data.data.loginoutUrl);
|
|
16
|
-
window.location.
|
|
16
|
+
window.location.href = res.data.data.loginoutUrl;
|
|
17
17
|
} else {
|
|
18
18
|
console.log('No login URL found, redirect to default login page.');
|
|
19
|
-
window.location.
|
|
19
|
+
window.location.href = '/admin-ui/login';
|
|
20
20
|
}
|
|
21
21
|
})
|
|
22
22
|
.catch((e) => {
|
|
23
23
|
console.log('GetLoginUrl error: ', e);
|
|
24
|
-
window.location.
|
|
24
|
+
window.location.href = '/admin-ui/login';
|
|
25
25
|
});
|
|
26
26
|
}});
|
|
27
27
|
})
|