🌐 AI搜索 & 代理 主页
Skip to content

Commit bf8966f

Browse files
committed
fix: don't display BootstrapVue warning messages when in production
1 parent 4219dcc commit bf8966f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/env.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ export const getEnv = (key, fallback = null) => {
7272
return env[key] || fallback
7373
}
7474

75-
export const getNoWarn = () => getEnv('BOOTSTRAP_VUE_NO_WARN')
75+
export const getNoWarn = () =>
76+
getEnv('BOOTSTRAP_VUE_NO_WARN') || getEnv('NODE_ENV') === 'production'

0 commit comments

Comments
 (0)