Handle HTTP 500
This commit is contained in:
parent
821da07c4e
commit
a4239d385b
@ -60,8 +60,7 @@
|
||||
console.log(e);
|
||||
if (e.srcElement.status===500) {
|
||||
parent.$refs.upload.message == e.srcElement.statusMessage
|
||||
}
|
||||
if(JSON.parse(e.srcElement.response).message === `${this.icao} Imported Successfully`) {
|
||||
} else if(JSON.parse(e.srcElement.response).message.match('[A-Z0-9]* Imported Successfully')) {
|
||||
Vue.set(parent, 'uploadVisible', false)
|
||||
} else if(JSON.parse(e.srcElement.response).message === 'XML Errors') {
|
||||
var response = JSON.parse(e.srcElement.response);
|
||||
|
Loading…
Reference in New Issue
Block a user