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; return;
} }
$.ajax({ $http.put(`customers/{{ $customer['id'] }}`, self.form).then((res) => {
url: `/admin/customers/{{ $customer['id'] }}`, layer.msg(res.message);
type: 'put', location = '{{ admin_route("customers.index") }}'
data: self.form,
success: function(res) {
self.$message.success(res.message);
}
}) })
}); });
}, },