Compare commits

...

3 Commits

Author SHA1 Message Date
xiezhouwei 5fa5f87e1e fix: 补全主页独立导航栏顺序 - 模型→评测→文档→控制台
Home/index.jsx 第 153 行有自己的固定导航栏(fixed top-0 z-50),
完全独立于 HeaderBar 组件。其导航项数组仍是旧顺序
模型→控制台→评测→文档,现调整为:模型→评测→文档→控制台。

至此三处导航栏全部修正:
1. useNavigation.js(桌面 HeaderBar 导航)
2. MobileSiteNavDropdown.jsx(移动端下拉导航)
3. Home/index.jsx(主页独立固定导航栏)
2026-06-17 14:08:02 +08:00
xiezhouwei d33f55ad55 fix: 补全移动端导航栏顺序同步 - 模型→评测→文档→控制台
之前只修改了 useNavigation.js(桌面导航),漏掉了
MobileSiteNavDropdown.jsx 第34行硬编码的 PRIMARY_NAV_KEYS
数组,导致移动端下拉导航顺序仍为旧顺序。
2026-06-17 14:04:33 +08:00
xiezhouwei 3cb9c85ea8 feat: 调整首页导航栏顺序为 模型→评测→文档→控制台 2026-06-17 14:00:16 +08:00
3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ const NAV_ICONS = {
import SkeletonWrapper from '../components/SkeletonWrapper';
/** 主站入口顺序(与桌面顶栏一致) */
const PRIMARY_NAV_KEYS = ['pricing', 'console', 'benchmark', 'docs'];
const PRIMARY_NAV_KEYS = ['pricing', 'benchmark', 'docs', 'console'];
const menuClass =
'!bg-semi-color-bg-overlay !border-semi-color-border !shadow-lg !rounded-lg dark:!bg-gray-700 dark:!border-gray-600';

View File

@ -38,11 +38,6 @@ export const useNavigation = (t, docsNav, headerNavModules) => {
itemKey: 'pricing',
to: '/pricing',
},
{
text: t('控制台'),
itemKey: 'console',
to: '/console',
},
{
text: t('评测'),
itemKey: 'benchmark',
@ -59,6 +54,11 @@ export const useNavigation = (t, docsNav, headerNavModules) => {
},
]
: []),
{
text: t('控制台'),
itemKey: 'console',
to: '/console',
},
];
// 根据配置过滤导航链接

View File

@ -161,9 +161,9 @@ function HeroSection() {
<nav className="hidden md:flex items-center gap-0.5">
{[
{ key: "model", label: "模型", icon: <Box size={16} />, to: "/pricing" },
{ key: "console", label: "控制台", icon: <Grid3X3 size={16} />, to: "/console" },
{ key: "benchmark", label: "评测", icon: <Trophy size={16} />, to: "/benchmarks" },
{ key: "docs", label: "文档", icon: <BookOpen size={16} />, to: "https://docs.new-api.cc", external: true },
{ key: "console", label: "控制台", icon: <Grid3X3 size={16} />, to: "/console" },
].map((item) => {
const linkClass = "inline-flex items-center gap-1.5 px-3 py-1.5 text-[14px] rounded-md transition-colors duration-150 text-white/60 hover:text-white";
if (item.external) {