diff --git a/quasar.config.js b/quasar.config.js index 46d1c29..9537ddf 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -54,7 +54,7 @@ module.exports = configure(function (/* ctx */) { build: { env: { // test:测试服务器;publish:正式服务器;其他本地 - ENV_MODE: process.env.NODE_ENV, + ENV_MODE: process.env.URL_ENV, }, target: { browser: ['es2020'], diff --git a/src/env.d.ts b/src/env.d.ts index dd757b1..8aa91be 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -5,5 +5,6 @@ declare namespace NodeJS { NODE_ENV: string; VUE_ROUTER_MODE: 'hash' | 'history' | 'abstract' | undefined; VUE_ROUTER_BASE: string | undefined; + URL_ENV: string; } }