mat/frontend-h5
caoqianming 25587dce21 perf(h5): 合并为单次 category-tree 接口 + 后端缓存
- 后端新增 /material/category-tree/ 一次性聚合 (大类→种类→子类),使用 Django cache 全局缓存(30 分钟)
- Material post_save / post_delete 信号自动失效缓存,保证一致性
- H5 首页从 4 次并行请求降为 1 次;命中缓存时不打 DB

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 09:34:29 +08:00
..
src perf(h5): 合并为单次 category-tree 接口 + 后端缓存 2026-04-27 09:34:29 +08:00
.gitignore feat(h5): 初始化 frontend-h5 脚手架(Vite+Vue3+Tailwind+Pinia+Router) 2026-04-24 16:05:36 +08:00
README.md docs(h5): 添加 README 部署说明 2026-04-27 08:57:12 +08:00
index.html feat(h5): 统一品牌名称与 logo 与 PC 端一致(M³ + 房地产新材料选材管理数据系统) 2026-04-27 09:21:16 +08:00
package-lock.json feat(h5): 初始化 frontend-h5 脚手架(Vite+Vue3+Tailwind+Pinia+Router) 2026-04-24 16:05:36 +08:00
package.json feat(h5): 初始化 frontend-h5 脚手架(Vite+Vue3+Tailwind+Pinia+Router) 2026-04-24 16:05:36 +08:00
postcss.config.js feat(h5): 初始化 frontend-h5 脚手架(Vite+Vue3+Tailwind+Pinia+Router) 2026-04-24 16:05:36 +08:00
tailwind.config.js feat(h5): 初始化 frontend-h5 脚手架(Vite+Vue3+Tailwind+Pinia+Router) 2026-04-24 16:05:36 +08:00
vite.config.js feat(h5): 初始化 frontend-h5 脚手架(Vite+Vue3+Tailwind+Pinia+Router) 2026-04-24 16:05:36 +08:00

README.md

frontend-h5

H5 材料浏览端。

开发

npm install
npm run dev        # http://localhost:5174/m/

生产

npm run build      # 输出到 dist/

Nginx 挂载示例:

location /m/ {
    alias /path/to/frontend-h5/dist/;
    try_files $uri $uri/ /m/index.html;
}

API 仍走主站 /api/