From bcc09a80bf002cc624da2810d164b3611550d53b Mon Sep 17 00:00:00 2001 From: zhangtao <9480807882@qq.com> Date: Sun, 17 Aug 2025 15:57:58 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README=E5=92=8Cnginx?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E7=BB=84=E4=BB=B6=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新README添加构建命令,优化nginx配置注释掉重复的index指令 移除fastapp中未使用的WdCheckbox组件声明 --- devops/nginx/nginx.conf | 4 ++-- fastapp/README.md | 6 ++++++ fastapp/components.d.ts | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/devops/nginx/nginx.conf b/devops/nginx/nginx.conf index e1f56de8..3c5c7df0 100644 --- a/devops/nginx/nginx.conf +++ b/devops/nginx/nginx.conf @@ -43,14 +43,14 @@ http { # 前端代理 - /web访问前端 location /web { alias /usr/share/nginx/html/frontend/dist; - index index.html index.htm; + # index index.html index.htm; try_files $uri $uri/ /web/index.html; #解决页面刷新404问题 } # 小程序代理 - /app访问小程序 location /app { alias /usr/share/nginx/html/fastapp/dist/build/h5; - index index.html index.htm; + # index index.html index.htm; try_files $uri $uri/ /app/index.html; #解决页面刷新404问题 } diff --git a/fastapp/README.md b/fastapp/README.md index 960bd2f9..5d3d8ada 100644 --- a/fastapp/README.md +++ b/fastapp/README.md @@ -24,6 +24,12 @@ h5启动 pnpm run dev:h5 ``` +构建 + +``` +pnpm run build:h5 +``` + 访问 [http://localhost:4096](http://localhost:4096) ## 组件结构 diff --git a/fastapp/components.d.ts b/fastapp/components.d.ts index 78672471..8af01919 100644 --- a/fastapp/components.d.ts +++ b/fastapp/components.d.ts @@ -21,7 +21,6 @@ declare module 'vue' { WdCard: typeof import('wot-design-uni/components/wd-card/wd-card.vue')['default'] WdCell: typeof import('wot-design-uni/components/wd-cell/wd-cell.vue')['default'] WdCellGroup: typeof import('wot-design-uni/components/wd-cell-group/wd-cell-group.vue')['default'] - WdCheckbox: typeof import('wot-design-uni/components/wd-checkbox/wd-checkbox.vue')['default'] WdCollapse: typeof import('wot-design-uni/components/wd-collapse/wd-collapse.vue')['default'] WdCollapseItem: typeof import('wot-design-uni/components/wd-collapse-item/wd-collapse-item.vue')['default'] WdConfigProvider: typeof import('wot-design-uni/components/wd-config-provider/wd-config-provider.vue')['default']