Merge branch 'master' of git.flexites.org:Students/ITRadio
This commit is contained in:
commit
20b70eea7f
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue