Skip to content

Commit

Permalink
fix redirect in logout
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Oct 23, 2024
1 parent a23fa2b commit 118e4d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/js/menus/LeftMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { useAuthStore } from "@/stores/Auth";
import { useLycheeStateStore } from "@/stores/LycheeState";
import AlbumService from "@/services/album-service";
import SETag from "@/components/icons/SETag.vue";
import Constants from "@/services/constants";
type MenyType =
| {
Expand Down Expand Up @@ -104,7 +105,7 @@ function logout() {
initData.value = undefined;
authStore.setUser(null);
AlbumService.clearCache();
window.location.href = "/gallery";
window.location.href = Constants.BASE_URL + "/gallery";
});
}
Expand Down

0 comments on commit 118e4d0

Please sign in to comment.