Display error message

This commit is contained in:
Abraham Williams
2019-08-22 15:34:17 -05:00
parent bce85b6e45
commit cd10b56aa6

View File

@@ -136,6 +136,10 @@ const app = new Vue({
this.response.body = xhr.responseText
}
}
xhr.onerror = e => {
this.response.status = '0'
this.response.body = 'Error ;('
}
},
addRequestParam() {
this.params.push({