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
007cca5e
Commit
007cca5e
authored
Oct 30, 2023
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix & symbol
parent
b8c70cbf
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
README.md
README.md
+1
-0
portfolio.js
pages/portfolio.js
+2
-2
No files found.
README.md
View file @
007cca5e
...
@@ -34,6 +34,7 @@ PC端,鼠标悬浮后是一个小手的就可以点击;移动端没有此提
...
@@ -34,6 +34,7 @@ PC端,鼠标悬浮后是一个小手的就可以点击;移动端没有此提
项目目录下运行yarn 或者 npm install
项目目录下运行yarn 或者 npm install
### 运行
### 运行
nvm use v16.20.0
开发测试: npm run dev, 访问 http://localhost:3000
开发测试: npm run dev, 访问 http://localhost:3000
部署:npm run export, 使用nextjs静态发布功能生成html等文件,产出目录在out, 提交代码或cms发布后全自动部署到阿里云,配置在.git-ci.yml。拷贝到阿里云对象存储空oss://gaorong-web ,并自动触发cdn刷新
部署:npm run export, 使用nextjs静态发布功能生成html等文件,产出目录在out, 提交代码或cms发布后全自动部署到阿里云,配置在.git-ci.yml。拷贝到阿里云对象存储空oss://gaorong-web ,并自动触发cdn刷新
...
...
pages/portfolio.js
View file @
007cca5e
...
@@ -40,9 +40,9 @@ export default class PortfolioPage extends Component {
...
@@ -40,9 +40,9 @@ export default class PortfolioPage extends Component {
renderPortfolio
(
portfolio
,
key
,
mounted
)
{
renderPortfolio
(
portfolio
,
key
,
mounted
)
{
var
n
=
''
var
n
=
''
if
(
portfolio
.
name
)
{
if
(
portfolio
.
name
)
{
n
=
portfolio
.
name
.
replace
(
/ |
\+
|
\.
/g
,
''
)
n
=
portfolio
.
name
.
replace
(
/ |
\+
|
\.
|
\&
/g
,
''
)
}
else
{
}
else
{
n
=
portfolio
.
nameEN
.
replace
(
/ |
\+
|
\.
/g
,
''
)
n
=
portfolio
.
nameEN
.
replace
(
/ |
\+
|
\.
|
\&
/g
,
''
)
}
}
n
=
n
.
replace
(
/^
\d
+/
,
''
)
n
=
n
.
replace
(
/^
\d
+/
,
''
)
if
(
mounted
)
{
if
(
mounted
)
{
...
...
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