From f0db7a70ab49f4977c63f1dd9d27db5b9bd8887a Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 27 Mar 2024 15:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=8F=91=E5=B8=83=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/configs/UrlManage.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1797ecb..9124179 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore", "test": "echo \"No test specified\" && exit 0", "dev": "quasar dev", - "build": "quasar build", + "build": "set NODE_ENV=local_test&&quasar build", "build:test": "set NODE_ENV=test&&quasar build", "build:publish": "set NODE_ENV=publish&&quasar build", "protoc": "node scripts/proto.cjs", diff --git a/src/configs/UrlManage.ts b/src/configs/UrlManage.ts index 815e4f8..b047e37 100644 --- a/src/configs/UrlManage.ts +++ b/src/configs/UrlManage.ts @@ -3,6 +3,8 @@ function getHost(): string { return 'test.joylink.club/bjrtsts-server'; } else if (process.env.ENV_MODE == 'publish') { return 'joylink.club/bjrtsts-server'; + } else if (process.env.NODE_ENV == 'local_test') { + return '192.168.33.233:9091'; } // return '192.168.3.7:9091'; // return '192.168.3.47:9091';