fixed patch换成put方法,js
This commit is contained in:
parent
e4823c2d18
commit
bcf085b860
|
@ -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]),
|
||||
|
|
Loading…
Reference in New Issue