fix: 修复关注按钮相关问题

- 食谱详情页: 修复 applyDefaultData 中未定义变量 id 的问题
- 帖子详情页: 优化 toggleFollow 方法,提前校验 author.id,兼容多种后端字段
- 为帖子详情页已关注状态添加灰色样式
This commit is contained in:
msh-agent
2026-03-09 18:56:53 +08:00
parent b516089c4f
commit c1857ce852
14 changed files with 3590 additions and 102 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Run T10 full regression tests and optionally update report.
# Usage: ./scripts/run-t10-regression.sh [--update-report]
set -e
cd "$(dirname "$0")/.."
echo "Running T10 regression tests..."
npx playwright test tests/e2e/bug-regression.spec.ts --grep "T10" --reporter=list
echo "Done. See docs/Testing/T10-full-regression-report.md to fill pass/fail from the output above."