hi-ucs/back/public/config/basicConfig.js

52 lines
1.7 KiB
JavaScript
Raw Normal View History

2022-08-25 15:07:19 +08:00
/*
* @Author: hisense.wuhongjian
* @Date: 2022-08-25 14:37:49
* @LastEditors: Light
* @LastEditTime: 2022-10-26 10:48:52
2022-08-25 15:07:19 +08:00
* @Description: 告诉大家这是什么
*/
var _global = {}
var CONFIGITEM = {
2022-10-12 09:50:17 +08:00
// version: 'qingdao', // 青岛
// version: 'xihaian', // 西海岸
2022-10-13 18:08:14 +08:00
version: 'dev', // 测试
2022-08-27 14:25:03 +08:00
// version: 'frp', // 内网穿透
2022-10-13 15:45:21 +08:00
// version: 'xihaian', // 开发
2022-08-27 14:26:03 +08:00
vNum: 'v0.8.7.2',
2022-08-25 15:07:19 +08:00
configData: {
// 青岛市大数据局
qingdao: {
previewUrl: 'http://15.72.183.90:7008/',
2022-10-31 14:08:04 +08:00
apiURL: 'http://15.72.183.90:8000/ucs-admin',
websocketURL: 'ws://15.72.183.90:8000/ucs-admin/websocket'
2022-08-25 15:07:19 +08:00
},
// 西海岸大数据局
xihaian: {
previewUrl: 'http://10.134.135.9:9796/',
2022-10-31 14:08:04 +08:00
// apiURL: 'http://10.134.135.9:8888/ucs-admin',
// apiURL: 'http://10.16.5.35:8888/ucs-admin', // 李志成-研发
apiURL: 'http://192.168.124.236:8888/ucs-admin',
// apiURL: 'http://192.168.124.254:8888/ucs-admin', // 李志成-远雄
websocketURL: 'ws://10.134.135.9:8888/ucs-admin/websocket'
2022-08-25 15:07:19 +08:00
},
// 测试
test: {
previewUrl: 'http://192.168.124.243:9796/',
2022-10-31 14:08:04 +08:00
apiURL: 'http://192.168.124.243:8888/ucs-admin',
websocketURL: 'ws://192.168.124.243:8888/ucs-admin/websocket'
2022-08-25 15:07:19 +08:00
},
// 内网穿透
2022-08-25 15:20:06 +08:00
frp: {
2022-08-25 15:07:19 +08:00
previewUrl: 'http://124.222.94.39:9796/',
2022-10-31 14:08:04 +08:00
apiURL: 'http://124.222.94.39:8888/ucs-admin',
websocketURL: 'ws://124.222.94.39:8888/ucs-admin/websocket'
2022-08-25 15:07:19 +08:00
},
dev: {
previewUrl: 'http://localhost:8080/',
2022-10-31 14:08:04 +08:00
apiURL: 'http://192.168.124.243:8888/ucs-admin',
websocketURL: 'ws://192.168.124.243:8888/ucs-admin/websocket'
2022-08-25 15:07:19 +08:00
}
}
}
_global.config = CONFIGITEM.configData[CONFIGITEM.version]