mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 20:30:18 +08:00
added: 系统初始化
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user