chore: 优化开发者工具配置

This commit is contained in:
2024-04-21 23:09:29 +08:00
parent 83f4aab2bc
commit 4a63a5057a
4 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
import VueDevTools from 'vite-plugin-vue-devtools'
export default function createDevtools(env) {
const { VITE_OPEN_DEVTOOLS } = env
return VITE_OPEN_DEVTOOLS === 'true' && VueDevTools()
}