refs #5835 migrateInvoiceIn #110

Merged
jorgep merged 29 commits from 5835-migrateInvoiceIn into dev 2023-12-13 10:25:07 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit d97f694563 - Show all commits

View File

@ -102,7 +102,7 @@ async function upsert() {
formData.append(dms.value.files[i].name, dms.value.files[i]);
dms.value.hasFileAttached = true;
}
const url = !isEdit ? 'Dms/uploadFile' : `dms/${dms.value.id}/updateFile`;
const url = isEdit ? `dms/${dms.value.id}/updateFile` : 'Dms/uploadFile';
const { data } = await axios.post(url, formData, {
params: dms.value,
});
@ -111,7 +111,7 @@ async function upsert() {
if (!isEdit) {
createDmsRef.value.hide();
} else if (isEdit) {
} else {
editDmsRef.value.hide();
}