fix call API bug for changeAdminRoleTypeForm

This commit is contained in:
DESKTOP-5I7S92L\nicho
2023-03-30 12:35:30 +08:00
parent f9b1289d28
commit 30ef3a7e41
3 changed files with 1 additions and 10 deletions
@@ -49,11 +49,8 @@
},
methods: {
successHandler(response) {
window.location.replace(this.route('customers', response.payload.data.reference));
},
submitForm() {
this.submit(this.route('api.account.user.updated.role', this.data.id), 'put', this.section, true, true)
this.submit(this.route('api.account.user.update.role', this.data.id), 'put', this.section, true, true)
},
updateRoleType(type){
this.parameters.type=type;
@@ -36,9 +36,6 @@
};
},
methods: {
successHandler(response) {
window.location.replace(this.route('customers', response.payload.data.reference));
},
submitForm() {
this.submit(this.route('api.company.update.type', this.data.id), 'put', this.section, true, true)
},
@@ -60,9 +60,6 @@
}
},
methods: {
successHandler(response) {
window.location.replace(this.route('customers', response.payload.data.reference));
},
submitForm() {
this.submit(this.route('api.company.update.nameAndDebtor', this.data.id), 'put', this.section, true, true)
}