Commit 6ad1e89f by 杨周龙

为antd关闭严格模式

1 parent e613d128
Showing with 4 additions and 6 deletions
...@@ -15,8 +15,8 @@ setAPP(APP) ...@@ -15,8 +15,8 @@ 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
} }
...@@ -27,14 +27,12 @@ store.dispatch.baseConfig.init() ...@@ -27,14 +27,12 @@ store.dispatch.baseConfig.init()
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 />
</React.StrictMode>,
document.getElementById('root') document.getElementById('root')
) )
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!