Change how the status check is working
This commit is contained in:
parent
0f74a60cb3
commit
bd70fa5f99
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ export default {
|
|||
* },
|
||||
*/
|
||||
console.log(data)
|
||||
if (!(200 <= data.status && data.status < 300)) {
|
||||
if (data.status < 200 || 300 <= data.status) {
|
||||
this.$emit(`error`, data);
|
||||
return;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue