feat: 登陆状态调整

This commit is contained in:
zdl
2025-10-20 13:58:07 +08:00
parent b2681231b0
commit d695f8ff7b
8 changed files with 37 additions and 70 deletions

View File

@@ -106,7 +106,8 @@ export const useSubscription = () => {
useEffect(() => {
fetchSubscriptionInfo();
}, [isAuthenticated, user]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isAuthenticated, user?.id]); // 只依赖 user.id,避免 user 对象变化导致无限循环
// 获取订阅级别数值
const getSubscriptionLevel = (type = null) => {