Commit 2b4b8ad4 by 周志凯

socket close

1 parent d850613c
......@@ -1121,7 +1121,7 @@
{ label: '店员对比', value: 1 },
{ label: '顾客对比', value: 2 }
],
socket: {},
socket: null,
results: [],
startTiming: 0,
endTiming: 0,
......@@ -1158,7 +1158,8 @@
'rematchPerson': this.rematchPersonType
}
this.footerText = val === 'compare' ? '数据对比' : this.dateLevelList.find(item => item.label === val).name
Object.keys(this.socket).length && this.socket.close()
console.log(this.socket)
this.socket && this.socket.close()
this.results.length && (this.results = [])
this.query.type = typeof typeHandler[val] === 'undefined'
? null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!