xujing 5 년 전
부모
커밋
0e821468bf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/layouts/SecurityLayout.jsx

+ 2
- 2
src/layouts/SecurityLayout.jsx 파일 보기

@@ -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
 }