added: 系统初始化

This commit is contained in:
none
2023-03-23 11:32:38 +08:00
parent 0fabdf7da7
commit c97a2529a8
5 changed files with 73 additions and 4 deletions

View File

@@ -1,8 +1,15 @@
import { useDispatch } from "react-redux";
import { Outlet } from "react-router-dom";
import { saveConfigAction } from "../../store/system/systemConfigSlice";
interface Props {}
interface Props {
config: Map<string, string>;
}
export const InitPage = (props: Props) => {
const dispatch = useDispatch();
dispatch(saveConfigAction(props.config));
return (
<>
<Outlet />