alter: alteracao metodo POST osbOrder

This commit is contained in:
2025-03-28 13:20:20 -03:00
parent 8d31a83b13
commit bb51147d99
11 changed files with 73 additions and 40 deletions

View File

@@ -53,11 +53,13 @@ if (parentNodeClass == 'espaco' || targetId == 'drop'){
const url = `/mesas/locationMesa/${mesaId}/${targetId}/`;
var resposta = fetch(url, {method: 'POST',
headers: {'Content-Type': 'application/json',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': document.querySelector('[name="csrfmiddlewaretoken"]').value
},}).then(response => response.json())
.then(data => {
if(data.status != 'ok'){
},})
.then(response => response.json())
.then(data => {
if(data.status != 'ok'){
alert('Erro ao salvar local:', error)
}
})