소스 검색

feat: 开源功能前端修改-3

100011797 3 년 전
부모
커밋
a6cde97df5
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/pages/home/index.tsx

+ 9 - 0
src/pages/home/index.tsx

@@ -86,6 +86,15 @@ const Home = () => {
             });
         }
       });
+    } else {
+      service.queryViews().then((resp) => {
+        setLoading(false);
+        if (resp.status === 200) {
+          if (resp.result) {
+            setCurrent(resp.result?.content);
+          }
+        }
+      });
     }
   }, []);