首页取消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);
|
||||
if (data.ret == -1) {
|
||||
Toast.show({
|
||||
icon: "fail",
|
||||
content: data.msg,
|
||||
position: "top",
|
||||
});
|
||||
// Toast.show({
|
||||
// icon: "fail",
|
||||
// content: data.msg,
|
||||
// position: "top",
|
||||
// });
|
||||
} else {
|
||||
return data.data.recomm_list;
|
||||
}
|
||||
|
@ -261,11 +261,11 @@ const FollowPostList = forwardRef(({ scrollHeight }, ref) => {
|
|||
setHasMore(followsResponse.data.more);
|
||||
setLoading(false);
|
||||
if (data.ret == -1) {
|
||||
Toast.show({
|
||||
icon: "fail",
|
||||
content: data.msg,
|
||||
position: "top",
|
||||
});
|
||||
// Toast.show({
|
||||
// icon: "fail",
|
||||
// content: data.msg,
|
||||
// position: "top",
|
||||
// });
|
||||
} else {
|
||||
setFollowPostList((old) => [...old, ...followsResponse.data.list]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue