Display error message
This commit is contained in:
@@ -136,6 +136,10 @@ const app = new Vue({
|
|||||||
this.response.body = xhr.responseText
|
this.response.body = xhr.responseText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
xhr.onerror = e => {
|
||||||
|
this.response.status = '0'
|
||||||
|
this.response.body = 'Error ;('
|
||||||
|
}
|
||||||
},
|
},
|
||||||
addRequestParam() {
|
addRequestParam() {
|
||||||
this.params.push({
|
this.params.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user