MG b0ead3f8c9 no message 1 ano atrás
..
.vscode af1c66a46c init 1 ano atrás
build af1c66a46c init 1 ano atrás
public af1c66a46c init 1 ano atrás
src b0ead3f8c9 no message 1 ano atrás
.dockerignore af1c66a46c init 1 ano atrás
.editorconfig af1c66a46c init 1 ano atrás
.eslintignore af1c66a46c init 1 ano atrás
.eslintrc.js af1c66a46c init 1 ano atrás
.gitattributes af1c66a46c init 1 ano atrás
.gitignore af1c66a46c init 1 ano atrás
.prettierrc af1c66a46c init 1 ano atrás
Dockerfile af1c66a46c init 1 ano atrás
LICENSE af1c66a46c init 1 ano atrás
README.md af1c66a46c init 1 ano atrás
dist.zip b0ead3f8c9 no message 1 ano atrás
docker-compose.yml af1c66a46c init 1 ano atrás
index.html af1c66a46c init 1 ano atrás
nginx.conf af1c66a46c init 1 ano atrás
package-lock.json af1c66a46c init 1 ano atrás
package.json af1c66a46c init 1 ano atrás
stats.html b0ead3f8c9 no message 1 ano atrás
tsconfig.json af1c66a46c init 1 ano atrás
vite.config.ts af1c66a46c init 1 ano atrás
yarn.lock af1c66a46c init 1 ano atrás

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