- 后端新增 /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> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| vite.config.js | ||
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/。