Adopt api-fix
This commit is contained in:
@@ -121,20 +121,24 @@
|
|||||||
|
|
||||||
this.beginLoading();
|
this.beginLoading();
|
||||||
|
|
||||||
return authenticatedClient.put('/api/teamer-data', data)
|
return axios({
|
||||||
.then(() => {
|
url: '/api/teamer-data',
|
||||||
this.alert({
|
method: 'put',
|
||||||
message: 'Die Änderungen wurden gespeichert',
|
data
|
||||||
class: 'alert-success'
|
})
|
||||||
});
|
.then(() => {
|
||||||
}).catch(error => {
|
this.alert({
|
||||||
this.alert({
|
message: 'Die Änderungen wurden gespeichert',
|
||||||
message: 'Es ist ein Fehler aufgetreten :(',
|
class: 'alert-success'
|
||||||
class: 'alert-danger'
|
|
||||||
});
|
|
||||||
}).finally(() => {
|
|
||||||
this.endLoading();
|
|
||||||
});
|
});
|
||||||
|
}).catch(error => {
|
||||||
|
this.alert({
|
||||||
|
message: 'Es ist ein Fehler aufgetreten :(',
|
||||||
|
class: 'alert-danger'
|
||||||
|
});
|
||||||
|
}).finally(() => {
|
||||||
|
this.endLoading();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|||||||
Reference in New Issue
Block a user