diff --git a/src/routes/lazy-components.js b/src/routes/lazy-components.js index dd3434bc..ada81708 100644 --- a/src/routes/lazy-components.js +++ b/src/routes/lazy-components.js @@ -12,7 +12,9 @@ export const lazyComponents = { // ⚡ 直接引用 HomePage,无需中间层(静态页面不需要骨架屏) HomePage: React.lazy(() => import('@views/Home/HomePage')), CenterDashboard: React.lazy(() => import('@views/Dashboard/Center')), - ProfilePage: React.lazy(() => import('@views/Profile')), + ProfilePage: React.lazy(() => import('@views/Profile/ProfilePage')), + // 价值论坛 - 我的积分页面 + ForumMyPoints: React.lazy(() => import('@views/Profile')), SettingsPage: React.lazy(() => import('@views/Settings/SettingsPage')), Subscription: React.lazy(() => import('@views/Pages/Account/Subscription')), PrivacyPolicy: React.lazy(() => import('@views/Pages/PrivacyPolicy')), @@ -56,6 +58,7 @@ export const { HomePage, CenterDashboard, ProfilePage, + ForumMyPoints, SettingsPage, Subscription, PrivacyPolicy, diff --git a/src/routes/routeConfig.js b/src/routes/routeConfig.js index 3c0fe14a..17d3fd24 100644 --- a/src/routes/routeConfig.js +++ b/src/routes/routeConfig.js @@ -191,6 +191,16 @@ export const routeConfig = [ description: '预测市场话题详细信息' } }, + { + path: 'value-forum/my-points', + component: lazyComponents.ForumMyPoints, + protection: PROTECTION_MODES.MODAL, + layout: 'main', + meta: { + title: '我的积分', + description: '价值论坛积分账户' + } + }, // ==================== Agent模块 ==================== { diff --git a/src/views/Company/index.js b/src/views/Company/index.js index bdcc8253..3b5feca4 100644 --- a/src/views/Company/index.js +++ b/src/views/Company/index.js @@ -91,7 +91,7 @@ const CompanyIndex = () => { setStockCode(scode); setInputCode(scode); } - }, [searchParams]); + }, [searchParams, stockCode]); useEffect(() => { loadWatchlistStatus();