Compare commits

..

No commits in common. "de016d48bf2fad647c2302585566c63c0175880f" and "e962b9661cac4c18230af08b6caf9392f2e1c82c" have entirely different histories.

1 changed files with 9 additions and 8 deletions

View File

@ -58,6 +58,15 @@ const isSaveing = ref(false);
const emit = defineEmits(["success"]);
const submit = async (transition_id) => {
isSaveing.value = true;
if (props.submit_b_func) {
try{
await props.submit_b_func();
}catch (e) {
isSaveing.value = false;
return;
}
}
if (ticketId.value) {
let params = new Object();
params.transition = transition_id;
@ -76,14 +85,6 @@ const submit = async (transition_id) => {
return;
}
} else {
if (props.submit_b_func) {
try{
await props.submit_b_func();
}catch (e) {
isSaveing.value = false;
return;
}
}
let ticket = {};
ticket.title = props.title;
ticket.workflow = workflow.value;