mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
24 lines
623 B
JavaScript
Executable File
24 lines
623 B
JavaScript
Executable File
import './styles/common.scss';
|
|
import './styles/theme.less';
|
|
import { LocaleProvider } from 'antd';
|
|
import './plugin';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import App from './Application';
|
|
import { Provider } from 'react-redux';
|
|
import createStore from './reducer/create';
|
|
|
|
// 由于 antd 组件的默认文案是英文,所以需要修改为中文
|
|
import zhCN from 'antd/lib/locale-provider/zh_CN';
|
|
|
|
const store = createStore();
|
|
|
|
ReactDOM.render(
|
|
<Provider store={store}>
|
|
<LocaleProvider locale={zhCN}>
|
|
<App />
|
|
</LocaleProvider>
|
|
</Provider>,
|
|
document.getElementById('yapi')
|
|
);
|