告警参数变更

This commit is contained in:
tiger_zhou 2023-10-17 10:30:55 +08:00
parent 4c384ec372
commit c8685a9213
6 changed files with 17 additions and 9 deletions

View File

@ -1,2 +1,4 @@
API=192.168.3.233:9081 API=192.168.3.233:9081
http=https HTTP=http://
NS=
WS=ws://

View File

@ -1,2 +1,4 @@
API=test.joylink.club:9081 API=test.joylink.club
http=https HTTP=https://test.joylink.club
NS=/ncc
WS=wss://test.joylink.club

View File

@ -1,2 +1,4 @@
API=localhost:9081 API=localhost:9081
http=https HTTP=http://localhost:9081
NS=
WS=ws://localhost:9081

View File

@ -1,2 +1,4 @@
API=localhost:9081 API=10.255.6.60:9081
http=https HTTP=http://
NS=
WS=ws://

View File

@ -9,7 +9,7 @@
"lint": "eslint --ext .js,.ts,.vue ./", "lint": "eslint --ext .js,.ts,.vue ./",
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore", "format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test": "echo \"No test specified\" && exit 0", "test": "echo \"No test specified\" && exit 0",
"dev": "set NODE_ENV=dev&&quasar dev", "dev": "NODE_ENV=dev&&quasar dev",
"local": "set NODE_ENV=local&&quasar dev", "local": "set NODE_ENV=local&&quasar dev",
"build": "set NODE_ENV=prod&&quasar build", "build": "set NODE_ENV=prod&&quasar build",
"dev-show": "set NODE_ENV=dev-show&&quasar build", "dev-show": "set NODE_ENV=dev-show&&quasar build",

View File

@ -6,11 +6,11 @@ function getHost(): string {
} }
export function getHttpBase() { export function getHttpBase() {
return `http://${getHost()}`; return process.env.HTTP + `${getHost()}` + process.env.NS;
} }
export function getWebsocketUrl() { export function getWebsocketUrl() {
return `ws://${getHost()}/ws-default`; return process.env.WS + `${getHost()}`+ process.env.NS+'/ws-default';
} }
export function getShowSetAlarmTextButton() { export function getShowSetAlarmTextButton() {