系统配置

This commit is contained in:
none 2023-03-28 10:11:29 +08:00
parent 2e8379f46c
commit 25da728efe
2 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import { useDispatch } from "react-redux";
import { Outlet } from "react-router-dom";
import styles from "./index.module.scss";
// import styles from "./index.module.scss";
import { saveConfigAction } from "../../store/system/systemConfigSlice";
import { Header, NoHeader, Footer } from "../../compenents";
import { useLocation } from "react-router-dom";

View File

@ -6,6 +6,12 @@ type SystemConfigStoreInterface = {
systemH5Url: string;
systemLogo: string;
systemName: string;
pcIndexFooterMsg: string;
playerPoster: string;
playerIsEnabledBulletSecret: string;
playerBulletSecretText: string;
playerBulletSecretColor: string;
playerBulletSecretOpacity: string;
};
let defaultValue: SystemConfigStoreInterface = {
@ -14,6 +20,12 @@ let defaultValue: SystemConfigStoreInterface = {
systemH5Url: "",
systemLogo: "",
systemName: "",
pcIndexFooterMsg: "",
playerPoster: "",
playerIsEnabledBulletSecret: "",
playerBulletSecretText: "",
playerBulletSecretColor: "",
playerBulletSecretOpacity: "",
};
const systemConfigSlice = createSlice({