feat: 将 IndustryProvider (176行) 完整迁移到 Redux

This commit is contained in:
zdl
2025-10-30 12:54:32 +08:00
parent a9e30d4eb9
commit c77061f36d
6 changed files with 207 additions and 193 deletions

View File

@@ -2,12 +2,14 @@
import { configureStore } from '@reduxjs/toolkit';
import communityDataReducer from './slices/communityDataSlice';
import posthogReducer from './slices/posthogSlice';
import industryReducer from './slices/industrySlice';
import posthogMiddleware from './middleware/posthogMiddleware';
export const store = configureStore({
reducer: {
communityData: communityDataReducer,
posthog: posthogReducer, // ✅ PostHog Redux 状态管理
industry: industryReducer, // ✅ 行业分类数据管理
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({