Explorar el Código

修复打包问题

李富豪 hace 1 año
padre
commit
1a2316a1c4
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 3 3
      app/components/home.tsx
  2. 1 1
      app/styles/globals.scss

+ 3 - 3
app/components/home.tsx

@@ -269,12 +269,12 @@ export function Home() {
   useHtmlLang();
 
   useEffect(() => {
-    console.log("[Config] got config from build time", getClientConfig());
+    // console.log("[Config] got config from build time", getClientConfig());
     useAccessStore.getState().fetch();
   }, []);
 
-  if (!useHasHydrated()) {// 防止两次loading效果
-    // return <Loading />;
+  if (!useHasHydrated()) {
+    return <Loading />;
   }
 
   return (

+ 1 - 1
app/styles/globals.scss

@@ -109,7 +109,7 @@ body {
   overflow: hidden;
 
   @media only screen and (max-width: 600px) {
-    background-color: var(--second);
+    // background-color: var(--second);
   }
 
   *:focus-visible {