app.js
940 Bytes
import React from 'react';
import { Provider } from "react-redux";
import store, { history } from './redux/store';
import AppRoutes from './routes';
import cx from 'classnames';
import 'antd/dist/antd.css';
import './less/app.less';
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import { LocaleProvider } from 'antd';
class App extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
if (window.SERVICE_URL)
console.log(window.SERVICE_URL);
}
componentWillUnmount() { }
render() {
return (
<div className={cx('app_wrap')}>
<LocaleProvider locale={zh_CN}>
<Provider store={store}>
<AppRoutes history={history}>
</AppRoutes>
</Provider>
</LocaleProvider>
</div>
);
}
}
export default App;