提交: 优化 home index 文件

This commit is contained in:
23688nl 2022-09-30 10:47:19 +08:00
parent cae7f69b8b
commit 566d6b647b
3 changed files with 8 additions and 4 deletions

View File

@ -12,11 +12,11 @@ port= 9988
# 服务端地址 # 服务端地址
// 陈志荣 本地 // 陈志荣 本地
target = http://192.168.18.140:8899 //target = http://192.168.18.140:8899
//target = http://192.168.18.139:8899 //target = http://192.168.18.139:8899
// target = http://192.168.18.136:8899 // target = http://192.168.18.136:8899
// 测试端 // 测试端
// target = http://192.168.10.241:32024 // target = http://192.168.10.241:32024
// 开发端 // 开发端
// target = http://192.168.10.241:30646 target = http://192.168.10.241:30646

View File

@ -28,7 +28,7 @@ let httpProtocol = 'http';
if (env.NODE_ENV == 'development') { if (env.NODE_ENV == 'development') {
flowIotUrl = 'http://127.0.0.1:1880/#flow/' flowIotUrl = 'http://127.0.0.1:1880/#flow/'
hrefHost = "192.168.18.140" hrefHost = "192.168.10.241"
} else if(env.NODE_ENV == 'production') { } else if(env.NODE_ENV == 'production') {
// if (hrefHost.indexOf('.gkiiot.com') >= 0) { // if (hrefHost.indexOf('.gkiiot.com') >= 0) {
// iotHost = 'iot.gkiiot.com' // iotHost = 'iot.gkiiot.com'
@ -43,7 +43,7 @@ if (env.NODE_ENV == 'development') {
} else if(env.NODE_ENV == 'test') { } else if(env.NODE_ENV == 'test') {
} }
sysWebSocket = sysWebSocket + hrefHost + ( port ? ':'+ port :''); sysWebSocket = sysWebSocket + hrefHost + ( port ? ':'+ port :'');
hrefHostUrl = hrefHostUrl =
iotWebSocketAlarmBaseUrl = sysWebSocket + '/ws/alarm/live'; iotWebSocketAlarmBaseUrl = sysWebSocket + '/ws/alarm/live';
bigWebSocketUrl = sysWebSocket + '/ws/dev/readData' bigWebSocketUrl = sysWebSocket + '/ws/dev/readData'

4
src/views/home/index.vue Normal file
View File

@ -0,0 +1,4 @@
<template >
<router-view />
</template>