首页取消Toast
This commit is contained in:
parent
76ea7dee05
commit
4f27a53850
20
app/page.js
20
app/page.js
|
@ -151,11 +151,11 @@ const RecommPostList = forwardRef(({ scrollHeight }, ref) => {
|
||||||
});
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
if (data.ret == -1) {
|
if (data.ret == -1) {
|
||||||
Toast.show({
|
// Toast.show({
|
||||||
icon: "fail",
|
// icon: "fail",
|
||||||
content: data.msg,
|
// content: data.msg,
|
||||||
position: "top",
|
// position: "top",
|
||||||
});
|
// });
|
||||||
} else {
|
} else {
|
||||||
return data.data.recomm_list;
|
return data.data.recomm_list;
|
||||||
}
|
}
|
||||||
|
@ -261,11 +261,11 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => {
|
||||||
setHasMore(followsResponse.data.more);
|
setHasMore(followsResponse.data.more);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
if (data.ret == -1) {
|
if (data.ret == -1) {
|
||||||
Toast.show({
|
// Toast.show({
|
||||||
icon: "fail",
|
// icon: "fail",
|
||||||
content: data.msg,
|
// content: data.msg,
|
||||||
position: "top",
|
// position: "top",
|
||||||
});
|
// });
|
||||||
} else {
|
} else {
|
||||||
setFollowPostList((old) => [...old, ...followsResponse.data.list]);
|
setFollowPostList((old) => [...old, ...followsResponse.data.list]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue