From e22e8339a639a7b56bca225e3ff8e39ae6c5f91d Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Fri, 21 Nov 2025 14:07:18 +0800 Subject: [PATCH] update pay function --- .../Navbars/components/SecondaryNav/config.js | 33 +++++++++++++++++++ src/routes/homeRoutes.js | 11 ------- src/routes/routeConfig.js | 10 ++++++ 3 files changed, 43 insertions(+), 11 deletions(-) diff --git a/src/components/Navbars/components/SecondaryNav/config.js b/src/components/Navbars/components/SecondaryNav/config.js index 436d8623..e597649c 100644 --- a/src/components/Navbars/components/SecondaryNav/config.js +++ b/src/components/Navbars/components/SecondaryNav/config.js @@ -27,6 +27,11 @@ export const secondaryNavConfig = { path: '/concepts', label: '概念中心', badges: [{ text: 'NEW', colorScheme: 'red' }] + }, + { + path: '/data-browser', + label: '数据浏览器', + badges: [{ text: 'NEW', colorScheme: 'red' }] } ] }, @@ -45,6 +50,34 @@ export const secondaryNavConfig = { path: '/concepts', label: '概念中心', badges: [{ text: 'NEW', colorScheme: 'red' }] + }, + { + path: '/data-browser', + label: '数据浏览器', + badges: [{ text: 'NEW', colorScheme: 'red' }] + } + ] + }, + '/data-browser': { + title: '高频跟踪', + items: [ + { + path: '/community', + label: '事件中心', + badges: [ + { text: 'HOT', colorScheme: 'green' }, + { text: 'NEW', colorScheme: 'red' } + ] + }, + { + path: '/concepts', + label: '概念中心', + badges: [{ text: 'NEW', colorScheme: 'red' }] + }, + { + path: '/data-browser', + label: '数据浏览器', + badges: [{ text: 'NEW', colorScheme: 'red' }] } ] }, diff --git a/src/routes/homeRoutes.js b/src/routes/homeRoutes.js index 9e2d7d00..5ad2ed5c 100644 --- a/src/routes/homeRoutes.js +++ b/src/routes/homeRoutes.js @@ -102,17 +102,6 @@ export const homeRoutes = [ } }, - // 数据浏览器 - /home/data-browser - { - path: 'data-browser', - component: lazyComponents.DataBrowser, - protection: PROTECTION_MODES.MODAL, - meta: { - title: '数据浏览器', - description: '化工商品数据分类树浏览器' - } - }, - // 回退路由 - 匹配任何未定义的 /home/* 路径 { path: '*', diff --git a/src/routes/routeConfig.js b/src/routes/routeConfig.js index da8a848d..289c8726 100644 --- a/src/routes/routeConfig.js +++ b/src/routes/routeConfig.js @@ -53,6 +53,16 @@ export const routeConfig = [ description: '热门概念追踪' } }, + { + path: 'data-browser', + component: lazyComponents.DataBrowser, + protection: PROTECTION_MODES.MODAL, + layout: 'main', + meta: { + title: '数据浏览器', + description: '化工商品数据分类树浏览器' + } + }, { path: 'stocks', component: lazyComponents.StockOverview,