修正
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
Jeffrey Hsu 2024-11-12 08:55:57 +08:00
parent 643f8467e8
commit 7332a62ede

View File

@ -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()
})