parent
643f8467e8
commit
7332a62ede
@ -82,7 +82,7 @@ const router = createRouter({
|
||||
});
|
||||
|
||||
router.beforeEach((to, _, next) => {
|
||||
if (to.meta.maintenance === true && import.meta.env.DEV) next({name: 'maintenance'})
|
||||
if (to.meta.maintenance === true && !import.meta.env.DEV) next({name: 'maintenance'})
|
||||
else next()
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user