@dskripchenko/laravel-admin 1.50.2 → 1.51.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/.vite/manifest.json +1 -1
- package/dist/assets/{app-CpTQowWs.js → app-Dfg_kc-5.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/source-hash.txt +1 -1
- package/dist/stores/auth.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19874,7 +19874,8 @@ const Te = vt("admin-auth", () => {
|
|
|
19874
19874
|
async function S() {
|
|
19875
19875
|
const A = be();
|
|
19876
19876
|
try {
|
|
19877
|
-
await A.post("/auth/logout");
|
|
19877
|
+
const B = await A.post("/auth/logout");
|
|
19878
|
+
return typeof B?.redirect == "string" && B.redirect !== "" ? B.redirect : null;
|
|
19878
19879
|
} finally {
|
|
19879
19880
|
e.value = null, t.value = [], n.value = null;
|
|
19880
19881
|
try {
|
|
@@ -20061,10 +20062,11 @@ const Te = vt("admin-auth", () => {
|
|
|
20061
20062
|
setup(e) {
|
|
20062
20063
|
const t = Te(), n = Re();
|
|
20063
20064
|
async function l() {
|
|
20065
|
+
let c = null;
|
|
20064
20066
|
try {
|
|
20065
|
-
await t.logout();
|
|
20067
|
+
c = await t.logout();
|
|
20066
20068
|
} finally {
|
|
20067
|
-
await n.push({ name: "admin.login" });
|
|
20069
|
+
c !== null ? window.location.assign(c) : await n.push({ name: "admin.login" });
|
|
20068
20070
|
}
|
|
20069
20071
|
}
|
|
20070
20072
|
function i() {
|