Compare commits
3 Commits
5b5d7a95f3
...
5fa5f87e1e
| Author | SHA1 | Date |
|---|---|---|
|
|
5fa5f87e1e | |
|
|
d33f55ad55 | |
|
|
3cb9c85ea8 |
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
},
|
||||
];
|
||||
|
||||
// 根据配置过滤导航链接
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue