[Bug] Fix staging tag shown in prod (#3705)

This commit is contained in:
Chenlei Hu
2025-04-30 19:36:07 -04:00
committed by GitHub
parent d41b8c4e83
commit 98b75e4819

View File

@@ -15,8 +15,9 @@
<script setup lang="ts">
import Tag from 'primevue/tag'
// @ts-expect-error: Global variable from vite build defined in global.d.ts
const isStaging = !window.__USE_PROD_CONFIG__
// Global variable from vite build defined in global.d.ts
// eslint-disable-next-line no-undef
const isStaging = !__USE_PROD_CONFIG__
</script>
<style scoped>