feat: 本次提交更新内容如下

搞登录拦截模块
This commit is contained in:
笔记本里的永平
2025-07-18 12:03:13 +08:00
parent 6f6cbadacd
commit d8c59f43c2
24 changed files with 1136 additions and 136 deletions

View File

@@ -0,0 +1,20 @@
import React from "react";
import styles from "./layout.module.scss";
interface LayoutProps {
loading?: boolean;
children?: React.ReactNode;
header?: React.ReactNode;
footer?: React.ReactNode;
}
const Layout: React.FC<LayoutProps> = ({ children, header, footer }) => {
return (
<div className={styles.container}>
{header && <header>{header}</header>}
<main>{children}</main>
{footer && <footer>{footer}</footer>}
</div>
);
};
export default Layout;

View File

@@ -0,0 +1,10 @@
.container {
display: flex;
height: 100vh;
flex-direction: column;
}
.container main {
flex: 1;
overflow: auto;
}