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