提交 8d27085d authored 作者: 王鹏飞's avatar 王鹏飞

iframe中的时候,去掉header

上级 04ff7cc9
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
justify-content: space-between; justify-content: space-between;
height: 66px; height: 66px;
background-color: #fff; background-color: #fff;
margin-bottom: 20px;
.logo { .logo {
height: 40px; height: 40px;
img { img {
......
...@@ -9,9 +9,10 @@ export default function AppLayout() { ...@@ -9,9 +9,10 @@ export default function AppLayout() {
if (queryUserIsPending || queryMapIsPending) { if (queryUserIsPending || queryMapIsPending) {
return return
} }
const isIframe = window.self !== window.top
return ( return (
<div className="app-layout"> <div className="app-layout">
<AppHeader /> {!isIframe && <AppHeader />}
<div className="app-layout-container"> <div className="app-layout-container">
<Outlet /> <Outlet />
</div> </div>
......
.data-layout { .data-layout {
display: flex; display: flex;
gap: 20px; gap: 20px;
padding-top: 20px; // padding-top: 20px;
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
&.collapsed { &.collapsed {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论