Commit 795de4b4 by 杨周龙

修改app.js

1 parent 46a5b4d1
Showing with 1 additions and 12 deletions
...@@ -61,18 +61,8 @@ function App() { ...@@ -61,18 +61,8 @@ function App() {
.catch(onError) .catch(onError)
}, []) }, [])
if (process.env.NODE_ENV === 'development') {
return ( return (
<Provider store={store}> <ErrorBoundaries app_code={appCode} enable={process.env.NODE_ENV !== 'development'} url={`${APP.GET_PALTFORM_CONFIG_URL}api/log`} >
<ConfigProvider locale={zhCN}>
<RouterView></RouterView>
</ConfigProvider>
</Provider>
)
}
else {
return (
<ErrorBoundaries app_code={appCode} url={`${APP.GET_PALTFORM_CONFIG_URL}api/log`} >
<Provider store={store}> <Provider store={store}>
<ConfigProvider locale={zhCN}> <ConfigProvider locale={zhCN}>
<RouterView></RouterView> <RouterView></RouterView>
...@@ -80,7 +70,6 @@ function App() { ...@@ -80,7 +70,6 @@ function App() {
</Provider> </Provider>
</ErrorBoundaries> </ErrorBoundaries>
) )
}
} }
export default App export default App
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!