mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-31 10:35:24 +08:00
### What problem does this PR solve? fix: Set the default language to English #1306 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
d7426d86d5
commit
d5f87a5498
@ -40,6 +40,7 @@ export const useFetchFileList = (): ResponseType<any> & IListResult => {
|
||||
},
|
||||
],
|
||||
initialData: {},
|
||||
gcTime: 0,
|
||||
queryFn: async (params: any) => {
|
||||
console.info(params);
|
||||
const { data } = await fileManagerService.listFile({
|
||||
|
@ -70,6 +70,7 @@ export const useFetchFlowList = (): { data: IFlow[]; loading: boolean } => {
|
||||
const { data, isFetching: loading } = useQuery({
|
||||
queryKey: ['fetchFlowList'],
|
||||
initialData: [],
|
||||
gcTime: 0,
|
||||
queryFn: async () => {
|
||||
const { data } = await flowService.listCanvas();
|
||||
|
||||
|
@ -25,7 +25,7 @@ const handleGithubCLick = () => {
|
||||
const RightToolBar = () => {
|
||||
const { t } = useTranslate('common');
|
||||
const changeLanguage = useChangeLanguage();
|
||||
const { language = 'en' } = useSelector(
|
||||
const { language = 'English' } = useSelector(
|
||||
(state) => state.settingModel.userInfo,
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user