ludu-admin-vue3/src/utils/env.ts
2023-03-07 10:01:29 +08:00

9 lines
153 B
TypeScript

export const isDevMode = () => {
const dev = import.meta.env.VITE_DEV
if (dev && dev === 'true') {
return true
} else {
return false
}
}