xujing 5 lat temu
rodzic
commit
0e821468bf
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      src/layouts/SecurityLayout.jsx

+ 2
- 2
src/layouts/SecurityLayout.jsx Wyświetl plik

@@ -33,10 +33,10 @@ class SecurityLayout extends React.Component {
33 33
     if (!currentUser.userId) {
34 34
       return <Redirect to="/user/login"></Redirect>;
35 35
     }
36
-
36
+    console.log(window.location, "window.locationwindow.locationwindow.location")
37 37
     return <>
38 38
       {children}
39
-      <Swiper />
39
+      {window.location.hash == "#/index" && <Swiper />}
40 40
     </>;
41 41
   }
42 42
 }