mirror of https://gitee.com/answerdev/answer.git
fix: install langs select
This commit is contained in:
parent
8b2e6e5997
commit
b7e292ad4c
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue