ludu-admin-vue3/src/utils/env.ts

9 lines
153 B
TypeScript
Raw Normal View History

export const isDevMode = () => {
const dev = import.meta.env.VITE_DEV
2023-03-07 10:01:29 +08:00
if (dev && dev === 'true') {
return true
} else {
return false
}
}