Commit 7a77a892 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改注册翻译

parent 09b22555
......@@ -6,9 +6,9 @@ import { GlobalConfig } from '@/global/config';
import queryString from 'query-string'
import { QuestionCircleOutlined } from '@ant-design/icons';
import { Tooltip } from 'antd'
import { getIntl } from 'umi';
import { getIntl, getLocale } from 'umi';
const intl = getIntl();
const intl = getIntl(getLocale());
function isArray(arr: any) {
return Array.isArray(arr)
......@@ -378,7 +378,7 @@ export const getFieldType = (field) => {
},
'x-component-props': {
size: 'large',
placeholder: `请选择${field.fieldLocalName}`,
placeholder: `${intl.formatMessage({ id: 'common.text.pleaseSelect' })}${field.fieldLocalName}`,
dataSource: field.fieldEnum,
...field.attr
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment