Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
2fb148ca
Commit
2fb148ca
authored
4 years ago
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 图片请求逻辑修改
parent
16e1ffef
Pipeline
#21533
passed with stages
in 16 minutes 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
app.js
src/app.js
+3
-3
index.js
src/containers/App/index.js
+4
-1
No files found.
src/app.js
View file @
2fb148ca
...
...
@@ -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>
,
...
...
This diff is collapsed.
Click to expand it.
src/containers/App/index.js
View file @
2fb148ca
...
...
@@ -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
>
<
/
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment