Skip to content

Commit

Permalink
隐藏横幅
Browse files Browse the repository at this point in the history
  • Loading branch information
softxx committed Nov 29, 2024
1 parent a88e11d commit 9ece8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function TopBanner() {
// 如果标记不存在,存储默认值并显示横幅
if (!bannerDismissed) {
storage.setItem("bannerDismissed", "false");
setIsVisible(true); // 显示横幅
setIsVisible(false); // 显示横幅
} else if (bannerDismissed === "true") {
// 如果标记为 "true",则隐藏横幅
setIsVisible(false);
Expand Down

0 comments on commit 9ece8b8

Please sign in to comment.