mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-02 01:39:12 +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: {},
|
initialData: {},
|
||||||
|
gcTime: 0,
|
||||||
queryFn: async (params: any) => {
|
queryFn: async (params: any) => {
|
||||||
console.info(params);
|
console.info(params);
|
||||||
const { data } = await fileManagerService.listFile({
|
const { data } = await fileManagerService.listFile({
|
||||||
|
@ -70,6 +70,7 @@ export const useFetchFlowList = (): { data: IFlow[]; loading: boolean } => {
|
|||||||
const { data, isFetching: loading } = useQuery({
|
const { data, isFetching: loading } = useQuery({
|
||||||
queryKey: ['fetchFlowList'],
|
queryKey: ['fetchFlowList'],
|
||||||
initialData: [],
|
initialData: [],
|
||||||
|
gcTime: 0,
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const { data } = await flowService.listCanvas();
|
const { data } = await flowService.listCanvas();
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ const handleGithubCLick = () => {
|
|||||||
const RightToolBar = () => {
|
const RightToolBar = () => {
|
||||||
const { t } = useTranslate('common');
|
const { t } = useTranslate('common');
|
||||||
const changeLanguage = useChangeLanguage();
|
const changeLanguage = useChangeLanguage();
|
||||||
const { language = 'en' } = useSelector(
|
const { language = 'English' } = useSelector(
|
||||||
(state) => state.settingModel.userInfo,
|
(state) => state.settingModel.userInfo,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user