Add Error listener
This commit is contained in:
parent
8dce2a4284
commit
4d598201c7
1 changed files with 9 additions and 0 deletions
|
|
@ -51,6 +51,15 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
|
sockets: {
|
||||||
|
Error(data) {
|
||||||
|
|
||||||
|
// Ensure that it was actually an error
|
||||||
|
if (200 <= data.status && data.status < 300) { return; };
|
||||||
|
|
||||||
|
console.error(data)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue