### 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)tags/v0.9.0
| @@ -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, | |||
| ); | |||