Commit 007cca5e authored by 吕祺's avatar 吕祺 ⛹🏽

fix & symbol

parent b8c70cbf
...@@ -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刷新
......
...@@ -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) {
......
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