Commit 2fb148ca authored by Maofei94's avatar Maofei94

fix: 图片请求逻辑修改

parent 16e1ffef
Pipeline #21533 passed with stages
in 16 minutes 38 seconds
......@@ -29,9 +29,9 @@ const render = () => {
<Provider store={store}>
<ConnectedRouter history={history}>
<ConfigProvider locale={zhCN}>
<PictureWallProvider>
<App routesConfig={config} />
</PictureWallProvider>
{/* <PictureWallProvider> */}
<App routesConfig={config} />
{/* </PictureWallProvider> */}
</ConfigProvider>
</ConnectedRouter>
</Provider>,
......
......@@ -7,6 +7,7 @@ import Authozed from '@/utils/authority';
import UserLogin from '@/pages/user/login';
import UserLayout from '@/layouts/UserLayout';
import { AUTHORITY, BASENAME } from '@/utils/constants';
import { PictureWallProvider } from '@/components/Upload/context';
export default appConnector(function App(props) {
const { routesConfig } = props;
return (
......@@ -23,7 +24,9 @@ export default appConnector(function App(props) {
}
authority={[AUTHORITY.LOGIN]}
>
<Switch>{renderRoutes(routesConfig.routes)}</Switch>
<PictureWallProvider>
<Switch>{renderRoutes(routesConfig.routes)}</Switch>
</PictureWallProvider>
</Authozed>
</Router>
</>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment