fix: install langs select

This commit is contained in:
shuai 2022-11-04 16:05:43 +08:00
parent 8b2e6e5997
commit b7e292ad4c
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
import type { LangsType, FormValue, FormDataType } from '@/common/interface';
import Progress from '../Progress';
import { getLanguageOptions } from '@/services';
import { getInstallLangOptions } from '@/services';
interface Props {
data: FormValue;
@ -18,7 +18,7 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => {
const [langs, setLangs] = useState<LangsType[]>();
const getLangs = async () => {
const res: LangsType[] = await getLanguageOptions();
const res: LangsType[] = await getInstallLangOptions();
setLangs(res);
changeCallback({
lang: {