diff --git a/package.json b/package.json index 02dfac9..7a20af7 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dev": "quasar dev", "build": "quasar build", "build:local": "URL_ENV=local_test quasar build", + "build:pxf": "URL_ENV=local_pxf quasar build", "build:test": "URL_ENV=test quasar build", "build:publish": "URL_ENV=publish quasar build", "protoc": "node scripts/proto.cjs", diff --git a/src/configs/UrlManage.ts b/src/configs/UrlManage.ts index 19a909f..b5dfc18 100644 --- a/src/configs/UrlManage.ts +++ b/src/configs/UrlManage.ts @@ -5,7 +5,12 @@ function getHost(): string { return 'joylink.club/bjrtsts-server'; } else if (process.env.URL_ENV == 'local_test') { return '192.168.33.233:9091'; + }else if(process.env.URL_ENV == 'local_pxf'){ + //北京现场 + + return '172.29.5.168/bjrtss-server' } + // return '192.168.3.7:9091'; // return '192.168.3.47:9091'; // return '192.168.3.37:9091'; @@ -13,7 +18,7 @@ function getHost(): string { // return '192.168.33.93:9091'; // return '192.168.3.37:9091'; //卫志宏 // return 'test.joylink.club/bjrtsts-service'; // 测试 - return '192.168.33.233:9091'; + return '127.0.0.1:9091'; } export function getHttpBase() { @@ -26,7 +31,7 @@ export function getHttpBase() { export function getWebsocketUrl() { let protocol = 'ws'; - let host = '192.168.33.233'; + let host = '127.0.0.1'; // let host = 'test.joylink.club'; let port = '8083'; let url = `${protocol}://${host}:${port}`; @@ -42,6 +47,8 @@ export function getWebsocketUrl() { url = `${protocol}://${host}`; } else if (process.env.URL_ENV == 'local_test') { host = '192.168.33.233'; + } else if (process.env.URL_ENV == 'local_pxf') { + host = '172.29.5.168'; } return `${url}/mqtt`;