add socket response type judgment
This commit is contained in:
parent
8bcb1b7723
commit
4d23ccf85d
|
@ -516,7 +516,7 @@ export default {
|
|||
}
|
||||
socket.onmessage = (msg) => {
|
||||
console.log('msg', msg)
|
||||
if (msg.data) {
|
||||
if (msg.data && msg.data instanceof Object) {
|
||||
this.data = JSON.parse(msg.data)
|
||||
console.log('data', this.data)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue