fix: 修复反馈列表状态判断使用宽松相等
- 将状态判断从严格相等(===)改为宽松相等(==) - 提高对数字/字符串类型混用的兼容性 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -33,10 +33,10 @@ | ... | @@ -33,10 +33,10 @@ |
| 33 | <view class="flex items-center"> | 33 | <view class="flex items-center"> |
| 34 | <view | 34 | <view |
| 35 | class="w-[12rpx] h-[12rpx] rounded-full mr-[8rpx]" | 35 | class="w-[12rpx] h-[12rpx] rounded-full mr-[8rpx]" |
| 36 | - :class="item.status === 5 ? 'bg-green-500' : 'bg-orange-500'" | 36 | + :class="item.status == 5 ? 'bg-green-500' : 'bg-orange-500'" |
| 37 | ></view> | 37 | ></view> |
| 38 | - <text class="text-[24rpx] font-medium" :class="item.status === 5 ? 'text-green-600' : 'text-orange-600'"> | 38 | + <text class="text-[24rpx] font-medium" :class="item.status == 5 ? 'text-green-600' : 'text-orange-600'"> |
| 39 | - {{ item.status === 5 ? '已处理' : '待处理' }} | 39 | + {{ item.status == 5 ? '已处理' : '待处理' }} |
| 40 | </text> | 40 | </text> |
| 41 | </view> | 41 | </view> |
| 42 | </view> | 42 | </view> | ... | ... |
-
Please register or login to post a comment