fixed patch换成put方法,js

This commit is contained in:
xxq250 2023-08-15 17:24:41 +08:00
parent e4823c2d18
commit bcf085b860
1 changed files with 1 additions and 1 deletions

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]),