Commit 4a7c1391f2b6aa0e4cb04ebcb6e59a2b5ca6298e
1 parent
ff9d7ea0
获取最近的四个关注达人信息
Showing
1 changed file
with
1 additions
and
2 deletions
src/pages/optimization/optimization.vue
| ... | ... | @@ -186,9 +186,8 @@ |
| 186 | 186 | |
| 187 | 187 | // 获取“达人列表数据” |
| 188 | 188 | if (datas.list && datas.list.length) { |
| 189 | - | |
| 190 | 189 | // 设置“达人列表数据”数据 |
| 191 | - this.$set(this, "dresserList", datas.list); | |
| 190 | + this.$set(this, "dresserList", datas.list.filter((item,index,arr) =>{return index <4})); | |
| 192 | 191 | } |
| 193 | 192 | |
| 194 | 193 | // 获取“热销商品” | ... | ... |