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

@@ -489,19 +489,19 @@ export default {
gap: 16rpx;
transition: all 0.2s ease;
box-sizing: border-box;
/* 未激活:明显变灰,无下划线 */
/* 未激活:明显变灰,无下划线BUG-002 */
color: #9ca3af;
font-weight: 400;
border-bottom: none;
border-bottom: 3rpx solid transparent;
.tab-icon {
font-size: 28rpx;
color: #9ca3af;
font-weight: 400;
color: inherit;
font-weight: inherit;
}
.tab-text {
font-size: 28rpx;
color: #9ca3af;
font-weight: 400;
color: inherit;
font-weight: inherit;
}
/* 激活加粗、主色、橙色底部下划线BUG-002 */
&.active {