From 7332a62ede9a8efc817384f37e481c3e0c4e064e Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Tue, 12 Nov 2024 08:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index eed5b6e..061fe78 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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() })