mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix: fixed the problem that the api will be called directly after selecting the chat assistant picture (#1034)
### What problem does this PR solve? fix: fixed the problem that the api will be called directly after selecting the chat assistant picture #1033 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -24,12 +24,10 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
|
||||
|
||||
const uploadButtion = (
|
||||
<button style={{ border: 0, background: 'none' }} type="button">
|
||||
<PlusOutlined />
|
||||
<div style={{ marginTop: 8 }}>
|
||||
{t('upload', { keyPrefix: 'common' })}
|
||||
</div>
|
||||
</button>
|
||||
)
|
||||
<PlusOutlined />
|
||||
<div style={{ marginTop: 8 }}>{t('upload', { keyPrefix: 'common' })}</div>
|
||||
</button>
|
||||
);
|
||||
|
||||
return (
|
||||
<section
|
||||
@ -53,6 +51,7 @@ const AssistantSetting = ({ show }: ISegmentedContentProps) => {
|
||||
<Upload
|
||||
listType="picture-card"
|
||||
maxCount={1}
|
||||
beforeUpload={() => false}
|
||||
showUploadList={{ showPreviewIcon: false, showRemoveIcon: false }}
|
||||
>
|
||||
{show ? uploadButtion : null}
|
||||
|
||||
Reference in New Issue
Block a user