Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
46ebe20b
Commit
46ebe20b
authored
Jul 24, 2023
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c0ba39ba
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
portfolio.js
pages/portfolio.js
+8
-3
No files found.
pages/portfolio.js
View file @
46ebe20b
...
@@ -38,7 +38,12 @@ export default class PortfolioPage extends Component {
...
@@ -38,7 +38,12 @@ export default class PortfolioPage extends Component {
})
})
}
}
renderPortfolio
(
portfolio
,
key
,
mounted
)
{
renderPortfolio
(
portfolio
,
key
,
mounted
)
{
const
n
=
portfolio
.
name
.
replace
(
/ |
\+
|
\.
/g
,
''
)
var
n
=
''
if
(
portfolio
.
name
)
{
n
=
portfolio
.
name
.
replace
(
/ |
\+
|
\.
/g
,
''
)
}
else
{
n
=
portfolio
.
nameEN
.
replace
(
/ |
\+
|
\.
/g
,
''
)
}
if
(
mounted
)
{
if
(
mounted
)
{
return
(
return
(
<
div
key
=
{
key
}
className
=
"portfolio-image-wrapper"
>
<
div
key
=
{
key
}
className
=
"portfolio-image-wrapper"
>
...
@@ -103,8 +108,8 @@ export default class PortfolioPage extends Component {
...
@@ -103,8 +108,8 @@ export default class PortfolioPage extends Component {
dayEN
dayEN
}
}
}
=
portfolioPage
}
=
portfolioPage
const
{
attributes
:
portfolio
}
=
portfolioChi
const
{
attributes
:
{
portfolio
}
}
=
portfolioChi
const
{
attributes
:
portfolioEN
}
=
portfolioEnglish
const
{
attributes
:
{
portfolioEN
}
}
=
portfolioEnglish
const
{
showType
,
selected
,
mounted
}
=
this
.
state
const
{
showType
,
selected
,
mounted
}
=
this
.
state
return
(
return
(
<
ThemeContext
.
Consumer
>
<
ThemeContext
.
Consumer
>
...
...
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