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';