This commit is contained in:
HAM!DREZA
2024-05-31 00:03:10 +03:30
parent fd5b06c2d7
commit 2242ed022f
17 changed files with 379 additions and 96 deletions
+4 -7
View File
@@ -385,7 +385,6 @@ import { useToast } from 'vue-toastification'
const toast = useToast()
const { data: tickets, refresh: load } = await useFetch("/api/ticket");
console.log('cli tick', tickets);
const loading = ref(false);
const addTicketForm = ref(false);
const subject = ref(null);
@@ -401,12 +400,13 @@ const sendTicket = async () => {
const data = await useFetch("/api/ticket", {
method: "POST",
body: {
subject,
subject: subject.value,
},
});
subject.value = '';
addTicketForm.value = false;
load()
addTicketForm.value = false;
subject.value = null;
console.log('تیکت',data);
};
@@ -424,9 +424,6 @@ const openTicket = async (data) => {
}
}
const {data: single, refresh: reload} = await useFetch("/api/ticket/id", {
method: "POST",
body: {