fix: remove console
gitea/salix-front/pipeline/pr-dev Build queued...
Details
gitea/salix-front/pipeline/pr-dev Build queued...
Details
This commit is contained in:
parent
7f281b8630
commit
2d8dd46d15
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue