fix: remove console
gitea/salix-front/pipeline/pr-dev Build queued... Details

This commit is contained in:
Javier Segarra 2025-01-15 20:09:56 +00:00
parent 7f281b8630
commit 2d8dd46d15
1 changed files with 0 additions and 1 deletions

View File

@ -46,7 +46,6 @@ export { Router };
export default defineRouter(function (/* { store, ssrContext } */) { export default defineRouter(function (/* { store, ssrContext } */) {
const state = useState(); const state = useState();
Router.beforeEach(async (to, from, next) => { Router.beforeEach(async (to, from, next) => {
console.error('beforeEach', session);
if (!session) session = useSession(); if (!session) session = useSession();
const outLayout = Router.options.routes[0].children.map((r) => r.name); const outLayout = Router.options.routes[0].children.map((r) => r.name);
if (!session.isLoggedIn() && !outLayout.includes(to.name)) { if (!session.isLoggedIn() && !outLayout.includes(to.name)) {