Commit 6ad1e89f by 杨周龙

为antd关闭严格模式

1 parent e613d128
Showing with 15 additions and 17 deletions
......@@ -15,27 +15,25 @@ 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
)
})
.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(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
<App />,
document.getElementById('root')
)
// If you want to start measuring performance in your app, pass a function
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!