完整的教务系统前端项目 - 包含所有修复和9月份数据

This commit is contained in:
KQL
2025-09-03 13:26:13 +08:00
commit 87b06d3176
270 changed files with 116169 additions and 0 deletions

30
src/store/index.js Normal file
View File

@@ -0,0 +1,30 @@
// 古老写法
// // 1. 导入原始 Redux 的核心函数
// import { createStore, combineReducers } from 'redux';
// // 2. 导入 reducers保持不变
// import loadingReducer from "./slices/loadingSlice";
// import studentReducer from "./slices/studentSlice";
// // 3. 合并 reducers
// const rootReducer = combineReducers({
// loading: loadingReducer,
// student: studentReducer,
// });
// // 4. 创建 store原始 Redux 方式)
// export default createStore(
// rootReducer,
// // 可选:添加 Redux DevTools 支持
// window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
// );
import { configureStore } from "@reduxjs/toolkit";
import loadingReducer from "./slices/loadingSlice";
import studentReducer from "./slices/studentSlice";
export default configureStore({
reducer: {
loading: loadingReducer,
student: studentReducer,
},
});