告警参数变更
This commit is contained in:
parent
4c384ec372
commit
c8685a9213
4
.env.dev
4
.env.dev
@ -1,2 +1,4 @@
|
|||||||
API=192.168.3.233:9081
|
API=192.168.3.233:9081
|
||||||
http=https
|
HTTP=http://
|
||||||
|
NS=
|
||||||
|
WS=ws://
|
||||||
|
@ -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
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
API=localhost:9081
|
API=localhost:9081
|
||||||
http=https
|
HTTP=http://localhost:9081
|
||||||
|
NS=
|
||||||
|
WS=ws://localhost:9081
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
API=localhost:9081
|
API=10.255.6.60:9081
|
||||||
http=https
|
HTTP=http://
|
||||||
|
NS=
|
||||||
|
WS=ws://
|
||||||
|
@ -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",
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user