diff --git a/web/src/pages/chunk/parsed-result/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.tsx b/web/src/pages/chunk/parsed-result/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.tsx index 73d988182e..87b9520a04 100644 --- a/web/src/pages/chunk/parsed-result/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.tsx +++ b/web/src/pages/chunk/parsed-result/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.tsx @@ -168,43 +168,45 @@ const ChunkCreatingModal: React.FC & kFProps> = ({ /> )} - ( - - {t('chunk.image')} + {isEditMode && form.getValues('doc_type_kwd') === 'image' && ( + ( + + {t('chunk.image')} -
- {data?.data?.img_id && ( - - )} - -
- - } +
+ {data?.data?.img_id && ( + - + )} + +
+ + } + /> + +
-
- - )} - /> + + )} + /> + )}