Commit e46b925e authored by liyuanhong's avatar liyuanhong

修改了新车机复位没有设置websocket = none 的bug

parent fd57fc86
...@@ -261,6 +261,7 @@ function reset(){ ...@@ -261,6 +261,7 @@ function reset(){
sendHttpMsg(data,url); sendHttpMsg(data,url);
$("#curStatus").val("断网"); $("#curStatus").val("断网");
$("#showFeedback").val("") $("#showFeedback").val("")
$("#totalSessionNums").val(0)
//endService() //endService()
ws.close(); ws.close();
} }
......
...@@ -289,6 +289,7 @@ function reset(){ ...@@ -289,6 +289,7 @@ function reset(){
$("#showFeedback").val("") $("#showFeedback").val("")
//endService() //endService()
$("#curStatus").val("断网") $("#curStatus").val("断网")
$("#totalSessionNums").val(0)
ws.close(); ws.close();
} }
} }
......
...@@ -251,6 +251,7 @@ def reset(): ...@@ -251,6 +251,7 @@ def reset():
service.stopTravel() service.stopTravel()
service.stopService() service.stopService()
service.socket.close() service.socket.close()
websocket = None
connects = {} connects = {}
data["status"] = "200" data["status"] = "200"
data["message"] = "复位成功!" data["message"] = "复位成功!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment