Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
解除测试代码
bulaienaofutuojiesenzhange61affb6f56e
diff --git a/src/app/[lng]/accounts/components/AddAccountModal/index.tsx b/src/app/[lng]/accounts/components/AddAccountModal/index.tsxindex 54977cd5..837a44df 100644--- a/src/app/[lng]/accounts/components/AddAccountModal/index.tsx+++ b/src/app/[lng]/accounts/components/AddAccountModal/index.tsx@@ -150,7 +150,7 @@ const AddAccountModal = memo(// 判断平台是否在当前属地可用const isPlatformAvailable = (platType: PlatType): boolean => {// TODO: 暂时屏蔽国内平台 @@.@@- return true;+ // return true;if (isCnSpace === null) return true; // 未确定属地时显示所有平台const cnOnlyPlatforms = new Set<PlatType>([diff --git a/src/hooks/useNotification.ts b/src/hooks/useNotification.tsindex 07f374c6..b09badb2 100644--- a/src/hooks/useNotification.ts+++ b/src/hooks/useNotification.ts@@ -29,19 +29,19 @@ export const useNotification = () => {// @@.@@- // useEffect(() => {- // // 初始获取- // fetchUnreadCount();-- // // 每10秒获取一次未读数量- // const interval = setInterval(() => {- // fetchUnreadCount();- // }, 60000);-- // return () => {- // clearInterval(interval);- // };- // }, [fetchUnreadCount]);+ useEffect(() => {+ // 初始获取+ fetchUnreadCount();++ // 每10秒获取一次未读数量+ const interval = setInterval(() => {+ fetchUnreadCount();+ }, 20000);++ return () => {+ clearInterval(interval);+ };+ }, [fetchUnreadCount]);return {unreadCount,