取消环境变量测试内容

This commit is contained in:
joylink_fanyuhong 2024-04-02 19:33:54 +08:00
parent c9431b94f4
commit c6c1876c29
5 changed files with 6 additions and 9 deletions

View File

@ -19,8 +19,6 @@ jobs:
version: 'v18.19.1'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
env: URL_ENV: 'local'
environment: URL_ENV: 'test'
- name: 安装yarn,并run build
run: |
node -v

View File

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

@ -1 +1 @@
Subproject commit 8117a06f1ebccc1e239e56cfc0a3137f499c8515
Subproject commit 78f0ddfd2413bdac81d33ea2b199edaa4de9e6fb

View File

@ -1,16 +1,16 @@
function getHost(): string {
console.log(process.env.ENV_MODE, process.env.URL_ENV, '000');
if (process.env.URL_ENV == 'test') {
if (process.env.ENV_MODE == 'test') {
return 'test.joylink.club/bjrtsts-server';
} else if (process.env.URL_ENV == 'publish') {
} else if (process.env.ENV_MODE == 'publish') {
return 'joylink.club/bjrtsts-server';
} else if (process.env.URL_ENV == 'local_test') {
} else if (process.env.ENV_MODE == 'local_test') {
return '192.168.33.233:9091';
}
// return '192.168.3.7:9091';
// return '192.168.3.47:9091';
// return '192.168.3.37:9091';
return '192.168.33.207:9091'; // 张骞
// return '192.168.33.207:9091'; // 张骞
// return '192.168.33.93:9091';
// return '192.168.3.37:9091'; //卫志宏
// return 'test.joylink.club/bjrtsts-service'; // 测试

1
src/env.d.ts vendored
View File

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