This commit is contained in:
@@ -160,7 +160,7 @@ export default {
|
||||
);
|
||||
},
|
||||
get(route) {
|
||||
var that=this;
|
||||
var that = this;
|
||||
//debugger;
|
||||
return new Promise(function(resolve, reject) {
|
||||
//debugger;
|
||||
@@ -169,12 +169,12 @@ export default {
|
||||
.then(that.json)
|
||||
.then(response => {
|
||||
//For now, assuming that all returns that make it here have either an error or a data object attached to them
|
||||
//debugger;
|
||||
// debugger;
|
||||
resolve(response);
|
||||
})
|
||||
.catch(function(error) {
|
||||
//fundamental error, can't proceed with this call
|
||||
// debugger;
|
||||
//debugger;
|
||||
var errorMessage =
|
||||
"API error: GET route =" + route + ", message =" + error.message;
|
||||
store.commit("logItem", errorMessage);
|
||||
@@ -183,4 +183,6 @@ export default {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//new functions above here
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user