удалил мусор из кода роутов

This commit is contained in:
Norbaev 2024-07-03 18:11:54 +05:00
parent 838c14a4ff
commit 1743ae3892
1 changed files with 0 additions and 18 deletions

View File

@ -49,24 +49,6 @@ export default route(function (/* { store, ssrContext } */) {
});
Router.beforeEach((to, from, next) => {
// console.log(to);
// console.log(process.env.SERVER);
// if (
// to.matched.some((record) => record.meta.requiresAuth) &&
// !process.env.SERVER
// ) {
// if (store.state.user && store.state.user?.id) {
// next();
// } else {
// next({ name: 'home' });
// this.$store.dispatch('setShowAuthModal', true);
// }
// } else {
// next();
// }
// console.log(to);
// console.log(from);
if (to.meta.isAuth) {
if (store.state.user) {
next();