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
d11be7e6
Commit
d11be7e6
authored
3 years ago
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改图片库web4路径
parent
a26de315
Pipeline
#50308
passed with stages
in 11 minutes 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.tsx
src/components/Upload/index.tsx
+2
-2
No files found.
src/components/Upload/index.tsx
View file @
d11be7e6
...
...
@@ -213,7 +213,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
localStorage
.
setItem
(
'pd2-baseUrl'
,
baseUrl
)
}
console
.
log
(
fileList
[
0
].
url
)
this
.
props
.
onChange
&&
this
.
props
.
onChange
(
maxLen
===
1
?
fileList
[
0
].
url
.
replace
(
'
Web4
\
\'
, '') : fileList.map(f => f.url.replace('
W
eb4
\\
', '')));
this
.
props
.
onChange
&&
this
.
props
.
onChange
(
maxLen
===
1
?
fileList
[
0
].
url
.
replace
(
'
web4
\
\'
, '') : fileList.map(f => f.url.replace('
w
eb4
\\
', '')));
this.setState({ fileList, wallModalVisible: false });
};
...
...
@@ -265,7 +265,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
return path
}
if (path && path.indexOf('
assets
') === 0) {
return `${window.location.origin}/
W
eb4/${path}`.replace(/
\\
/g, '
/
')
return `${window.location.origin}/
w
eb4/${path}`.replace(/
\\
/g, '
/
')
}
return `${window.location.origin}/${path}`.replace(/
\\
/g, '
/
')
}
...
...
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