MG af1c66a46c init il y a 2 ans
..
.vscode af1c66a46c init il y a 2 ans
build af1c66a46c init il y a 2 ans
public af1c66a46c init il y a 2 ans
src af1c66a46c init il y a 2 ans
.dockerignore af1c66a46c init il y a 2 ans
.editorconfig af1c66a46c init il y a 2 ans
.eslintignore af1c66a46c init il y a 2 ans
.eslintrc.js af1c66a46c init il y a 2 ans
.gitattributes af1c66a46c init il y a 2 ans
.gitignore af1c66a46c init il y a 2 ans
.prettierrc af1c66a46c init il y a 2 ans
Dockerfile af1c66a46c init il y a 2 ans
LICENSE af1c66a46c init il y a 2 ans
README.md af1c66a46c init il y a 2 ans
docker-compose.yml af1c66a46c init il y a 2 ans
index.html af1c66a46c init il y a 2 ans
nginx.conf af1c66a46c init il y a 2 ans
package-lock.json af1c66a46c init il y a 2 ans
package.json af1c66a46c init il y a 2 ans
stats.html af1c66a46c init il y a 2 ans
tsconfig.json af1c66a46c init il y a 2 ans
vite.config.ts af1c66a46c init il y a 2 ans
yarn.lock af1c66a46c init il y a 2 ans

README.md

修改接口config文件

src/cool/config
将proxy中的端口改成接口服务的端口
将prod中的baseUrl改成本项目的(这个是发布在单服务器多服务情况下,区分接口服务的)
将proxy中的path.replace(/^\/prod/, "/lhyt-api"),lhyt-api改成baseUrl的名称

安装项目依赖

推荐使用 yarn

yarn

运行应用程序

安装过程完成后,运行以下命令启动服务。您可以在浏览器中预览网站 http://localhost:9000

yarn dev