Commit 59be599b authored by liubinyu's avatar liubinyu

关闭socket输入,防止内存持续占用

parent 22619aa8
......@@ -212,7 +212,7 @@
this.socket.onmessage = msg => {
try{
const data = JSON.parse(msg.data);
console.log('socket_crew data', msg);
// console.log('socket_crew data', msg);
// console.log('socket_crew data', data);
if (!data) return;
data.xAxis = data.xaxis.map(i => dateFormat(new Date(i * 1000), 'YY/MM/DD\nHH:mm:ss'));
......@@ -524,7 +524,7 @@
.win-item-left {
text-align: right;
margin-right: 1rem;
width: 60%;
width: 55%;
}
.win-item-right {
text-align: left;
......
......@@ -94,7 +94,7 @@
this.socket.onmessage = msg => {
try{
const data = JSON.parse(msg.data);
console.log('socket_factory data', msg);
// console.log('socket_factory data', msg);
// console.log('socket_factory data', data);
if (!data) return;
this.socketData = data;
......
......@@ -232,7 +232,7 @@
.left {
text-align: right;
margin-right: 1rem;
width: 55%;
width: 50%;
}
.right {
text-align: left;
......
......@@ -144,7 +144,7 @@
this.socket.onmessage = msg => {
try{
const data = JSON.parse(msg.data);
console.log('socket_all data', msg);
// console.log('socket_all data', msg);
// console.log('socket_all data', data);
if (!data) return;
this.$store.commit('allData', data);
......
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