fixed patch换成put方法,js

This commit is contained in:
2023-08-15 17:24:41 +08:00
parent e4823c2d18
commit bcf085b860

View File

@@ -63,7 +63,7 @@ $(document).on('turbolinks:load', function() {
if(!valid) return;
$.ajax({
method: 'PATCH',
method: 'PUT',
dataType: 'json',
url: $form.attr('action'),
data: new FormData($form[0]),