mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 02:41:19 +08:00
登录成功请求系统配置
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user