|
|
@@ -15,10 +15,10 @@ let wsUrl = null
|
|
15
|
15
|
// const wsUrl = 'ws://' + process.env.SOCKET_IP + ':' + process.env.SOCKET_PORT
|
|
16
|
16
|
// 创建scoket连接
|
|
17
|
17
|
export function createWebSocket() {
|
|
18
|
|
- wsUrl = 'ws://' + store.getters.serverConfig.SOCKET_IP + ':' + store.getters.serverConfig.SOCKET_PORT//请求地址
|
|
|
18
|
+ wsUrl = 'ws://' + store.getters.serverConfig.SOCKET_IP + ':' + store.getters.serverConfig.SOCKET_PORT// 请求地址
|
|
19
|
19
|
try {
|
|
20
|
20
|
if ('WebSocket' in window) {
|
|
21
|
|
- ws = new WebSocket(wsUrl) //创建一个websocket实例
|
|
|
21
|
+ ws = new WebSocket(wsUrl) // 创建一个websocket实例
|
|
22
|
22
|
init()
|
|
23
|
23
|
} else {
|
|
24
|
24
|
Message.error('当前浏览器不支持Websocket!')
|
|
|
@@ -357,6 +357,7 @@ function LineStateAgentBack(linedata) {
|
|
357
|
357
|
// case '空闲':
|
|
358
|
358
|
case 1:
|
|
359
|
359
|
store.dispatch('ChangeLineState', 1)
|
|
|
360
|
+ store.dispatch('ChangeSeatState', 2)
|
|
360
|
361
|
store.dispatch('ChangeCallNum', '') // 顶部电话号码('')
|
|
361
|
362
|
store.dispatch('ChangeTopRightState', ['空闲', true])
|
|
362
|
363
|
break
|