Commit 6ad1e89f by 杨周龙

为antd关闭严格模式

1 parent e613d128
Showing with 15 additions and 17 deletions
...@@ -15,27 +15,25 @@ setAPP(APP) ...@@ -15,27 +15,25 @@ setAPP(APP)
init() init()
store.dispatch.baseConfig.init() store.dispatch.baseConfig.init()
.then(res => { .then(res => {
if(!res) { if (!res) {
console.error('平台配置参数未获取', res) console.error('平台配置参数未获取', res)
return return
} }
http.setHeader('operationChannel', res.operationChannel) http.setHeader('operationChannel', res.operationChannel)
install( install(
process.env.REACT_APP_API === 'production' ? 'production' : 'development', process.env.REACT_APP_API === 'production' ? 'production' : 'development',
'browser', 'browser',
res.platformName, res.platformName,
res.app_code res.app_code
) )
}) })
if (process.env.NODE_ENV !== 'development') document.domain = 'b2bwings.com' if (process.env.NODE_ENV !== 'development') document.domain = 'b2bwings.com'
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <App />,
<App /> document.getElementById('root')
</React.StrictMode>,
document.getElementById('root')
) )
// If you want to start measuring performance in your app, pass a function // 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!