chore: /debug route
This commit is contained in:
@@ -39,6 +39,17 @@ const router = createRouter({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'debug',
|
||||
component: () => import('@/pages/debug-page.vue'),
|
||||
beforeEnter: (to, from, next) => {
|
||||
if (import.meta.env.DEV) {
|
||||
next();
|
||||
} else {
|
||||
next(false);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'NotFound',
|
||||
|
||||
Reference in New Issue
Block a user