Merge branch 'master' of https://bdgit.educoder.net/Hjqreturn/educoder
commit
2f1f80f7b4
@ -1,46 +1,46 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
import './indexPlus.css';
|
import './indexPlus.css';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
// 加之前main.js 18.1MB
|
// 加之前main.js 18.1MB
|
||||||
// import { message } from 'antd';
|
// import { message } from 'antd';
|
||||||
import message from 'antd/lib/message';
|
import message from 'antd/lib/message';
|
||||||
import 'antd/lib/message/style/css';
|
import 'antd/lib/message/style/css';
|
||||||
|
|
||||||
import { AppContainer } from 'react-hot-loader';
|
import { AppContainer } from 'react-hot-loader';
|
||||||
|
|
||||||
import registerServiceWorker from './registerServiceWorker';
|
import registerServiceWorker from './registerServiceWorker';
|
||||||
|
|
||||||
import { configureUrlQuery } from 'react-url-query';
|
import { configureUrlQuery } from 'react-url-query';
|
||||||
|
|
||||||
import history from './history';
|
import history from './history';
|
||||||
|
|
||||||
// link the history used in our app to url-query so it can update the URL with it.
|
// link the history used in our app to url-query so it can update the URL with it.
|
||||||
configureUrlQuery({ history });
|
configureUrlQuery({ history });
|
||||||
// ----------------------------------------------------------------------------------- 请求配置
|
// ----------------------------------------------------------------------------------- 请求配置
|
||||||
|
|
||||||
window.__useKindEditor = false;
|
window.__useKindEditor = false;
|
||||||
|
|
||||||
|
|
||||||
const render = (Component) => {
|
const render = (Component) => {
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<AppContainer>
|
<AppContainer {...this.props} {...this.state}>
|
||||||
<Component />
|
<Component {...this.props} {...this.state}/>
|
||||||
</AppContainer>,
|
</AppContainer>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ReactDOM.render(
|
// ReactDOM.render(
|
||||||
// ,
|
// ,
|
||||||
// document.getElementById('root'));
|
// document.getElementById('root'));
|
||||||
// registerServiceWorker();
|
// registerServiceWorker();
|
||||||
|
|
||||||
render(App);
|
render(App);
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('./App', () => { render(App) });
|
module.hot.accept('./App', () => { render(App) });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue