Explorar el Código

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

100011797 hace 3 años
padre
commit
a6cde97df5
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  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);
+          }
+        }
+      });
     }
   }, []);