This commit is contained in:
张成
2025-11-16 09:53:24 +08:00
parent 6f4900eb0b
commit ad971796ba
8 changed files with 143 additions and 64 deletions

View File

@@ -38,7 +38,8 @@ const MainPage: React.FC = () => {
}
};
init();
}, [fetchUserInfo]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []); // fetchUserInfo 是稳定的函数引用,不需要加入依赖项
// 处理标签切换
const handleTabChange = useCallback((code: string) => {