头部引入国际化组件和zh_CN
import {ConfigProvider} from 'antd'; import zh_CN from 'antd/es/locale/zh_CN';
在组件外层放上
<ConfigProvider locale={zh_CN}></ConfigProvider>