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;
|
if(!valid) return;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'PATCH',
|
method: 'PUT',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
url: $form.attr('action'),
|
url: $form.attr('action'),
|
||||||
data: new FormData($form[0]),
|
data: new FormData($form[0]),
|
||||||
|
|
Loading…
Reference in New Issue