pushuo 2022-08-29 20:37:18 +08:00
parent e2a1621fe6
commit 06b812d5e2
1 changed files with 3 additions and 7 deletions

View File

@ -217,13 +217,9 @@
return;
}
$.ajax({
url: `/admin/customers/{{ $customer['id'] }}`,
type: 'put',
data: self.form,
success: function(res) {
self.$message.success(res.message);
}
$http.put(`customers/{{ $customer['id'] }}`, self.form).then((res) => {
layer.msg(res.message);
location = '{{ admin_route("customers.index") }}'
})
});
},