refactor: 统一功能组件结构,简化特性配置

This commit is contained in:
2026-06-30 21:18:28 +08:00
parent ece5c6135e
commit 47e08f80b3
5 changed files with 24 additions and 72 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ describe('features 懒加载', () => {
const { render, waitFor } = await import('@testing-library/react');
const { FEATURES } = await import('@/config/features');
const DashboardPage = FEATURES.find((f) => f.key === 'dashboard')!.components.popup;
const DashboardPage = FEATURES.find((f) => f.key === 'dashboard')!.component;
render(
React.createElement(React.Suspense, { fallback: null }, React.createElement(DashboardPage)),