Interface SAV
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user