* doc

* fix: i18n

* fix: scroll load
This commit is contained in:
Archer
2025-05-13 12:16:32 +08:00
committed by GitHub
parent 1edca309c4
commit d5f188a1a4
12 changed files with 15 additions and 13 deletions

View File

@@ -234,7 +234,7 @@ const LexiconConfigModal = ({ appId, onClose }: { appId: string; onClose: () =>
} else {
toast({
status: 'success',
title: t('common:Add Success')
title: t('common:add_success')
});
}
fetchData(1);

View File

@@ -147,7 +147,7 @@ const VariableEdit = ({
onChange(onChangeVariable);
toast({
status: 'success',
title: t('common:Add Success')
title: t('common:add_success')
});
reset({
...addVariable(),

View File

@@ -122,7 +122,7 @@ function MemberModal({
permission: addOnly ? undefined : selectedPermission!
} as UpdateClbPermissionProps<ValueOf<typeof addOnly>>),
{
successToast: t('common:Add Success'),
successToast: t('common:add_success'),
onSuccess() {
onClose();
}

View File

@@ -120,7 +120,7 @@ function EditModal({
maxLength={100}
placeholder={t('user:team.Team Name')}
{...register('name', {
required: t('common:Please Input Name')
required: t('common:please_input_name')
})}
/>
</Flex>

View File

@@ -44,7 +44,7 @@ const DetailLogsModal = ({ appId, chatId, onClose }: Props) => {
const chatRecords = useContextSelector(ChatRecordContext, (v) => v.chatRecords);
const totalRecordsCount = useContextSelector(ChatRecordContext, (v) => v.totalRecordsCount);
const { data: chat, loading: isFetching } = useRequest2(
const { data: chat } = useRequest2(
async () => {
const res = await getInitChatInfo({ appId, chatId, loadCustomFeedbacks: true });
res.userAvatar = HUMAN_ICON;

View File

@@ -100,7 +100,7 @@ const InputFormEditModal = ({
onSubmit(data);
toast({
status: 'success',
title: t('common:Add Success')
title: t('common:add_success')
});
reset(defaultFormInput);
}

View File

@@ -219,7 +219,7 @@ const FieldEditModal = ({
onSubmit(data);
toast({
status: 'success',
title: t('common:Add Success')
title: t('common:add_success')
});
reset(defaultInput);
}