Interface SAV

This commit is contained in:
Jonathan Chevalier
2023-07-05 18:04:18 +02:00
parent a944d221cc
commit f3f90db859
5 changed files with 326 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ export default {
return response.json();
},
async saveMessage(id, reply) {
async saveMessage(id, quill, replyOption) {
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=saveMessage'
if (import.meta.env.DEV) {
console.log(apiUrl)
@@ -40,7 +40,8 @@ export default {
const postData = new FormData();
postData.append("id_business", id);
postData.append("data", JSON.stringify(reply));
postData.append("quill", quill);
postData.append("data", JSON.stringify(replyOption));
const response = await fetch(apiUrl, {
method: 'POST',