李富豪 5 달 전
부모
커밋
d6e733a293
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      app/components/DeekSeekHome.tsx

+ 5 - 1
app/components/DeekSeekHome.tsx

@@ -43,7 +43,11 @@ const DeekSeek: React.FC = () => {
 
     React.useEffect(() => {
         chatStore.clearSessions();
-        init()
+        const userInfo = localStorage.getItem('userInfo');
+
+        if (userInfo) {
+            init();
+        }
     }, []);
 
     return (