xujing 5 years ago
parent
commit
0e821468bf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/layouts/SecurityLayout.jsx

+ 2
- 2
src/layouts/SecurityLayout.jsx View File

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