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']