增加维修单导入
This commit is contained in:
@@ -66,11 +66,6 @@ function start() {
|
||||
}
|
||||
|
||||
function createWebSocket(callback, token) {
|
||||
console.log(websocket,'websocket')
|
||||
// if (websocket == null || typeof websocket !== WebSocket) {
|
||||
// initWebSocket(callback, token);
|
||||
// }
|
||||
|
||||
// websocket.readyState 0 (CONNECTING) 1 (OPEN) 2 (CLOSING) 3 (CLOSED)
|
||||
// 0 连接正在建立中,尚未连接
|
||||
// 1 已经建立,可以进行通信
|
||||
@@ -80,7 +75,6 @@ function createWebSocket(callback, token) {
|
||||
if(websocket && websocket.readyState === 1){
|
||||
return
|
||||
}
|
||||
console.log(websocket)
|
||||
if (websocket === null || websocket.readyState === 3) {
|
||||
initWebSocket(callback, token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user