fixed the bug

pull/141/MERGE^2
hyh123a 2022-04-19 10:12:51 +08:00
parent 5c67daed62
commit 7988638473
2 changed files with 5 additions and 6 deletions

View File

@ -237,8 +237,7 @@ const TicketAggent = ({ setRedirect, setRedirectUrl, t }) => {
ticketTypes.map(ticketType => {
if (ticketType.id == target.value) {
setSelectedTicketTypeName(ticketType.name);
console.log("onWorkflowTypeChange", ticketType.name, ticketType.id, target.value)
console.log('onWorkflowTypeChange', ticketType.name, ticketType.id, target.value);
}
});
};

View File

@ -110,11 +110,13 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
let isResponseOK = false;
// Get Ticket List
fetch(APIBaseURL + '/ticket/list', {
method: 'GET',
method: 'POST',
headers: {
'Content-type': 'application/json'
},
body: null
body: JSON.stringify({
user_name: 'admin'
})
})
.then(response => {
console.log(response);
@ -275,7 +277,6 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
setApplyModalIsShown(true);
};
// Submit
let submitApplication = target => {
hiddenModal();
@ -314,7 +315,6 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
});
};
let hiddenModal = () => {
setApplyModalIsShown(false);
};