mirror of
https://github.com/PlayEdu/h5.git
synced 2025-06-07 20:34:06 +08:00
fixed: 底部导航栏悬浮bug
This commit is contained in:
parent
f71df2a461
commit
8a3bbd565b
7
src/pages/layouts/with-footer/index.module.scss
Normal file
7
src/pages/layouts/with-footer/index.module.scss
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.playedu-app {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
@ -2,15 +2,16 @@ import { Suspense } from "react";
|
|||||||
import { Outlet } from "react-router-dom";
|
import { Outlet } from "react-router-dom";
|
||||||
import LoadingPage from "../../loading";
|
import LoadingPage from "../../loading";
|
||||||
import { TabBarFooter } from "../../../components";
|
import { TabBarFooter } from "../../../components";
|
||||||
|
import styles from "./index.module.scss";
|
||||||
|
|
||||||
const WithoutHeaderWithoutFooter = () => {
|
const WithoutHeaderWithoutFooter = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={styles["playedu-app"]}>
|
||||||
<Suspense fallback={<LoadingPage />}>
|
<Suspense fallback={<LoadingPage />}>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
<TabBarFooter></TabBarFooter>
|
<TabBarFooter></TabBarFooter>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user