From a4ace6ca8f516f63897d2c3088506312146990f9 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 2 Apr 2024 18:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quasar.config.js | 2 +- src/env.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; } }