modify the ticket agent list api

pull/141/MERGE^2
hyh123a 2022-04-18 21:39:49 +08:00
parent aefe3bb3e2
commit 0aa5db7547
1 changed files with 5 additions and 3 deletions

View File

@ -109,12 +109,14 @@ const TicketAggent = ({ setRedirect, setRedirectUrl, t }) => {
useEffect(() => {
let isResponseOK = false;
// Get Ticket List
fetch(APIBaseURL + '/ticket/list', {
method: 'GET',
fetch(APIBaseURL + '/ticket/list/agent', {
method: 'POST',
headers: {
'Content-type': 'application/json'
},
body: null
body: JSON.stringify({
user_name: 'admin'
})
})
.then(response => {
console.log(response);