@dskripchenko/laravel-admin 1.24.0 → 1.24.1
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -30373,7 +30373,10 @@ function lj(a, t = {}) {
|
|
|
30373
30373
|
*/
|
|
30374
30374
|
onUnauthenticated: () => {
|
|
30375
30375
|
const g = d;
|
|
30376
|
-
if (g === null)
|
|
30376
|
+
if (g === null) {
|
|
30377
|
+
typeof window < "u" && !window.location.pathname.endsWith("/login") && window.location.assign(`${l}/login`);
|
|
30378
|
+
return;
|
|
30379
|
+
}
|
|
30377
30380
|
const x = g.currentRoute.value;
|
|
30378
30381
|
x.meta?.kind !== "auth" && g.replace({
|
|
30379
30382
|
name: "admin.login",
|