From 6e44c002c68f2b27836f9fe08840ff87537d0afc Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Sun, 5 Jun 2022 11:39:40 +0800 Subject: [PATCH] chore: tweaks --- src/client/app/index.ts | 2 +- src/client/shim.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/app/index.ts b/src/client/app/index.ts index d8d6e231..691efebd 100644 --- a/src/client/app/index.ts +++ b/src/client/app/index.ts @@ -75,7 +75,7 @@ export function createApp() { } // setup devtools in dev mode - if (import.meta.env.DEV) { + if (import.meta.env.DEV || __VUE_PROD_DEVTOOLS__) { setupDevtools(app, router, data) } diff --git a/src/client/shim.d.ts b/src/client/shim.d.ts index 6a486e5d..868fc51e 100644 --- a/src/client/shim.d.ts +++ b/src/client/shim.d.ts @@ -1,6 +1,7 @@ declare const __VP_HASH_MAP__: Record declare const __ALGOLIA__: boolean declare const __CARBON__: boolean +declare const __VUE_PROD_DEVTOOLS__: boolean declare module '*.vue' { import { ComponentOptions } from 'vue'