diff --git a/src/components/common/VnDms.vue b/src/components/common/VnDms.vue index e667e1558..8f5cc73c4 100644 --- a/src/components/common/VnDms.vue +++ b/src/components/common/VnDms.vue @@ -35,6 +35,10 @@ const $props = defineProps({ type: String, default: null, }, + hasFile: { + type: Boolean, + default: false, + }, }); const warehouses = ref(); @@ -49,7 +53,7 @@ onMounted(() => { if (!$props.formInitialData) { dms.value.description = $props.description ?? t($props.model + 'Description', dms.value); - dms.value.hasFile = false; + dms.value.hasFile = $props.hasFile; } }); function onFileChange(files) {