From f12655546ab584370aed77653003d6826ab9071c Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 2 Apr 2024 18:12:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9124179..602f4ba 100644 --- a/package.json +++ b/package.json @@ -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" }, From d5dff582b2e52eda5d51bf3d10a570a6ef932f99 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 2 Apr 2024 18:13:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/configs/UrlManage.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/configs/UrlManage.ts b/src/configs/UrlManage.ts index 5483133..6a9a6d1 100644 --- a/src/configs/UrlManage.ts +++ b/src/configs/UrlManage.ts @@ -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';