登录成功请求系统配置

This commit is contained in:
none
2023-04-11 11:01:15 +08:00
parent 7bc01276b5
commit 86964737d3
3 changed files with 59 additions and 43 deletions

View File

@@ -1,25 +1,19 @@
import { createSlice } from "@reduxjs/toolkit";
type SystemConfigStoreInterface = {
systemApiUrl: string;
systemPcUrl: string;
systemH5Url: string;
systemLogo: string;
systemName: string;
};
let defaultValue: SystemConfigStoreInterface = {
systemApiUrl: "",
systemPcUrl: "",
systemH5Url: "",
systemLogo: "",
systemName: "",
systemApiUrl?: string;
systemPcUrl?: string;
systemH5Url?: string;
systemLogo?: string;
systemName?: string;
memberDefaultAvatar?: string;
courseDefaultThumbs?: string[];
};
const systemConfigSlice = createSlice({
name: "systemConfig",
initialState: {
value: defaultValue,
value: {},
},
reducers: {
saveConfigAction(stage, e) {