feat(首页): 为戒子列表添加 articles 字段支持
- 添加 articles 字段以支持文章列表展示 - 提供空数组默认值避免数据缺失导致的错误 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -429,6 +429,7 @@ onMounted(async () => { | ... | @@ -429,6 +429,7 @@ onMounted(async () => { |
| 429 | name: item.category_name, | 429 | name: item.category_name, |
| 430 | cover: item.cover || '', | 430 | cover: item.cover || '', |
| 431 | category_link: item.category_link || '', | 431 | category_link: item.category_link || '', |
| 432 | + articles: item.articles || [], | ||
| 432 | })) || []; | 433 | })) || []; |
| 433 | // 临坛十师 | 434 | // 临坛十师 |
| 434 | mastersList.value = list?.STDJSSQZ?.map(item => ({ | 435 | mastersList.value = list?.STDJSSQZ?.map(item => ({ | ... | ... |
-
Please register or login to post a comment