LOCKING盒子版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
758 B

  1. import { useModel } from 'umi';
  2. import AppHeader from '@/components/AppHeader';
  3. import { RouteProps } from 'react-router';
  4. import React from 'react';
  5. import styles from './indexLayout.less';
  6. export default function IndexLayout(props: RouteProps) {
  7. const { isLogin } = useModel('useAuthModel');
  8. const isLoginView = props.location
  9. return (
  10. <div className={styles.app}>
  11. <AppHeader className={styles.header} />
  12. <main className={styles.main}>
  13. {
  14. isLogin
  15. ? (
  16. <div className={styles.nav}>
  17. </div>
  18. )
  19. : null
  20. }
  21. <div className={styles.content}>
  22. {isLogin || isLoginView ? props.children : null}
  23. </div>
  24. </main>
  25. </div>
  26. )
  27. }