Compare commits

...

2 Commits

Author SHA1 Message Date
joylink_fanyuhong
9506b238f2 Merge remote-tracking branch 'origin/develop' into local-test
All checks were successful
CI / Docker-Build (push) Successful in 3m3s
2024-04-02 18:19:37 +08:00
joylink_fanyuhong
a4ace6ca8f 环境变量测试 2024-04-02 18:18:39 +08:00
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module.exports = configure(function (/* ctx */) {
build: { build: {
env: { env: {
// test:测试服务器publish正式服务器其他本地 // test:测试服务器publish正式服务器其他本地
ENV_MODE: process.env.NODE_ENV, ENV_MODE: process.env.URL_ENV,
}, },
target: { target: {
browser: ['es2020'], browser: ['es2020'],

1
src/env.d.ts vendored
View File

@ -5,5 +5,6 @@ declare namespace NodeJS {
NODE_ENV: string; NODE_ENV: string;
VUE_ROUTER_MODE: 'hash' | 'history' | 'abstract' | undefined; VUE_ROUTER_MODE: 'hash' | 'history' | 'abstract' | undefined;
VUE_ROUTER_BASE: string | undefined; VUE_ROUTER_BASE: string | undefined;
URL_ENV: string;
} }
} }