Authored by yyq

fix empty

... ... @@ -110,15 +110,16 @@ export default {
top: 30%;
color: #b7b7b7;
text-align: center;
font-weight: 300;
&:before {
content: "";
display: block;
width: 230px;
height: 230px;
width: 196px;
height: 196px;
background-image: url("~statics/image/userpage/follow-empty.png");
background-size: 100% 100%;
margin: 0 auto 10px;
margin: 0 auto 34px;
}
}
}
... ...
... ... @@ -93,12 +93,12 @@ export default {
return;
}
if (page < 2 && get(res, 'data.totalCount') < 1) {
let list = get(res, 'data.list', []);
if (page < 2 && (get(res, 'data.totalCount') < 1 || !list.length)) {
this.empty = true;
}
let list = get(res, 'data.list', []);
list.forEach(val => {
val.isAttention = val.hasAttention === 'Y';
});
... ...