Commit 6f7042c0 by 杨周龙

修改index文件

1 parent 49f614de
Showing with 0 additions and 18 deletions
......@@ -6,29 +6,11 @@ import reportWebVitals from './reportWebVitals'
import 'antd/dist/antd.css'
import { init } from 'loading-bar'
import 'loading-bar/src/index.css'
import store from './store'
import { install } from 'system-collect'
import http from './libs/fetch'
import { APP } from './config/index'
import { setAPP } from 'xbd-cookie'
setAPP(APP)
init()
store.dispatch.baseConfig.init()
.then(res => {
if (!res) {
console.error('平台配置参数未获取', res)
return
}
http.setHeader('operationChannel', res.operationChannel)
install(
process.env.REACT_APP_API === 'production' ? 'production' : 'development',
'browser',
res.platformName,
res.app_code
)
})
if (process.env.NODE_ENV !== 'development') document.domain = 'b2bwings.com'
ReactDOM.render(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!