|
há 1 ano atrás | |
---|---|---|
.. | ||
.vscode | há 1 ano atrás | |
build | há 1 ano atrás | |
public | há 1 ano atrás | |
src | há 1 ano atrás | |
.dockerignore | há 1 ano atrás | |
.editorconfig | há 1 ano atrás | |
.eslintignore | há 1 ano atrás | |
.eslintrc.js | há 1 ano atrás | |
.gitattributes | há 1 ano atrás | |
.gitignore | há 1 ano atrás | |
.prettierrc | há 1 ano atrás | |
Dockerfile | há 1 ano atrás | |
LICENSE | há 1 ano atrás | |
README.md | há 1 ano atrás | |
dist.zip | há 1 ano atrás | |
docker-compose.yml | há 1 ano atrás | |
index.html | há 1 ano atrás | |
nginx.conf | há 1 ano atrás | |
package-lock.json | há 1 ano atrás | |
package.json | há 1 ano atrás | |
stats.html | há 1 ano atrás | |
tsconfig.json | há 1 ano atrás | |
vite.config.ts | há 1 ano atrás | |
yarn.lock | há 1 ano atrás |
src/cool/config
将proxy中的端口改成接口服务的端口
将prod中的baseUrl改成本项目的(这个是发布在单服务器多服务情况下,区分接口服务的)
将proxy中的path.replace(/^\/prod/, "/lhyt-api"),lhyt-api改成baseUrl的名称
推荐使用 yarn
:
yarn
安装过程完成后,运行以下命令启动服务。您可以在浏览器中预览网站 http://localhost:9000
yarn dev