Compare commits

...

2 Commits

1 changed files with 8 additions and 9 deletions

View File

@ -58,15 +58,6 @@ 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;
@ -85,6 +76,14 @@ 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;