Commit 53e8ccb6 by 李金轩

ljx

1 parent f850b4ee
window._baseUrl = ['localhost', '192.168.1.104'].includes(window.location.hostname) ? 'http://mall.keliuyun.com:9998' : ''
window._host = ['localhost', '192.168.1.104'].includes(window.location.hostname) ? 'mall.keliuyun.com:9998' : window.location.host
// window._baseUrl = 'http://36.112.68.214:9999'
const log = console.log.bind(console)
......@@ -219,7 +219,7 @@ export default {
webSocketMap[scheduleType].close()
}
webSocketMap[scheduleType] = new WebSocket(`ws://store.keliuyun.com:9998/recal/schedule/${scheduleType}`)
webSocketMap[scheduleType] = new WebSocket(`ws://${window._host}/recal/schedule/${scheduleType}`)
webSocketMap[scheduleType].onopen = () => {
queryData(scheduleType)
......
......@@ -177,7 +177,7 @@ export default {
}
resultList.value = []
webSocket = new WebSocket(`ws://store.keliuyun.com:9998/recal/schedule/rebuildFeatureLib${queryForm.featureRevisitType}`)
webSocket = new WebSocket(`ws://${window._host}/recal/schedule/rebuildFeatureLib${queryForm.featureRevisitType}`)
webSocket.onopen = queryData
......
......@@ -180,7 +180,7 @@ export default {
}
resultList.value = []
webSocket = new WebSocket(`ws://store.keliuyun.com:9998/recal/schedule/revisitFeature${queryForm.featureRevisitType}`)
webSocket = new WebSocket(`ws://${window._host}/recal/schedule/revisitFeature${queryForm.featureRevisitType}`)
webSocket.onopen = queryData
......
......@@ -177,7 +177,7 @@ export default {
}
resultList.value = []
webSocket = new WebSocket(`ws://store.keliuyun.com:9998/recal/schedule/rematchPerson${queryForm.featureRevisitType}`)
webSocket = new WebSocket(`ws://${window._host}/recal/schedule/rematchPerson${queryForm.featureRevisitType}`)
webSocket.onopen = queryData
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!