首页取消Toast

This commit is contained in:
al 2024-08-07 19:44:56 +08:00
parent 76ea7dee05
commit 4f27a53850
1 changed files with 10 additions and 10 deletions

View File

@ -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]);
}