This commit is contained in:
parent
dfddde1d5c
commit
d97f694563
|
@ -102,7 +102,7 @@ async function upsert() {
|
||||||
formData.append(dms.value.files[i].name, dms.value.files[i]);
|
formData.append(dms.value.files[i].name, dms.value.files[i]);
|
||||||
dms.value.hasFileAttached = true;
|
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, {
|
const { data } = await axios.post(url, formData, {
|
||||||
params: dms.value,
|
params: dms.value,
|
||||||
});
|
});
|
||||||
|
@ -111,7 +111,7 @@ async function upsert() {
|
||||||
|
|
||||||
if (!isEdit) {
|
if (!isEdit) {
|
||||||
createDmsRef.value.hide();
|
createDmsRef.value.hide();
|
||||||
} else if (isEdit) {
|
} else {
|
||||||
editDmsRef.value.hide();
|
editDmsRef.value.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue