Compare commits

...

2 Commits

Author SHA1 Message Date
joylink_fanyuhong
d5dff582b2 环境变量测试 2024-04-02 18:13:21 +08:00
joylink_fanyuhong
f12655546a 环境变量测试 2024-04-02 18:12:59 +08:00
2 changed files with 7 additions and 7 deletions

View File

@ -10,9 +10,9 @@
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test": "echo \"No test specified\" && exit 0",
"dev": "quasar dev",
"build": "set NODE_ENV=local_test&&quasar build",
"build:test": "set NODE_ENV=test&&quasar build",
"build:publish": "set NODE_ENV=publish&&quasar build",
"build": "set URL_ENV=local_test&&quasar build",
"build:test": "set URL_ENV=test&&quasar build",
"build:publish": "set URL_ENV=publish&&quasar build",
"protoc": "node scripts/proto.cjs",
"sync": "node scripts/sync.cjs"
},

View File

@ -1,10 +1,10 @@
function getHost(): string {
console.log(process.env.ENV_MODE, process.env.NODE_ENV, '000');
if (process.env.ENV_MODE == 'test') {
console.log(process.env.ENV_MODE, process.env.URL_ENV, '000');
if (process.env.URL_ENV == 'test') {
return 'test.joylink.club/bjrtsts-server';
} else if (process.env.ENV_MODE == 'publish') {
} else if (process.env.URL_ENV == 'publish') {
return 'joylink.club/bjrtsts-server';
} else if (process.env.ENV_MODE == 'local_test') {
} else if (process.env.URL_ENV == 'local_test') {
return '192.168.33.233:9091';
}
// return '192.168.3.7:9091';