首页取消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); 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]);
} }