mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: remove loading from document table and fixed the issue where gif images could not be uploaded on the configuration page (#122)
* feat: fixed the issue where gif images could not be uploaded on the configuration page * feat: remove loading from document table
This commit is contained in:
@ -45,8 +45,8 @@ const UserSettingProfile = () => {
|
||||
const loading = useGetUserInfoLoading();
|
||||
const { form, submittable } = useValidateSubmittable();
|
||||
|
||||
const onFinish = (values: any) => {
|
||||
const avatar = getBase64FromUploadFileList(values.avatar);
|
||||
const onFinish = async (values: any) => {
|
||||
const avatar = await getBase64FromUploadFileList(values.avatar);
|
||||
saveSetting({ ...values, avatar });
|
||||
};
|
||||
|
||||
@ -112,6 +112,10 @@ const UserSettingProfile = () => {
|
||||
<Upload
|
||||
listType="picture-card"
|
||||
maxCount={1}
|
||||
accept="image/*"
|
||||
beforeUpload={() => {
|
||||
return false;
|
||||
}}
|
||||
showUploadList={{ showPreviewIcon: false, showRemoveIcon: false }}
|
||||
>
|
||||
<button style={{ border: 0, background: 'none' }} type="button">
|
||||
|
||||
Reference in New Issue
Block a user