删除多个完成报告文件,优化项目结构以提升可维护性。
This commit is contained in:
@@ -33,19 +33,19 @@ export function BottomNav() {
|
||||
|
||||
// 在文档页面、管理后台、阅读页面和关于页面不显示底部导航(必须在所有 hooks 之后)
|
||||
if (
|
||||
pathname.startsWith("/documentation") ||
|
||||
pathname.startsWith("/admin") ||
|
||||
pathname.startsWith("/read") ||
|
||||
pathname.startsWith("/about")
|
||||
pathname?.startsWith("/view/documentation") ||
|
||||
pathname?.startsWith("/admin") ||
|
||||
pathname?.startsWith("/view/read") ||
|
||||
pathname?.startsWith("/view/about")
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
||||
const navItems = [
|
||||
{ href: "/", icon: Home, label: "首页" },
|
||||
{ href: "/chapters", icon: List, label: "目录" },
|
||||
...(matchEnabled ? [{ href: "/match", icon: Users, label: "找伙伴", isCenter: true }] : []),
|
||||
{ href: "/my", icon: User, label: "我的" },
|
||||
{ href: "/view", icon: Home, label: "首页" },
|
||||
{ href: "/view/chapters", icon: List, label: "目录" },
|
||||
...(matchEnabled ? [{ href: "/view/match", icon: Users, label: "找伙伴", isCenter: true }] : []),
|
||||
{ href: "/view/my", icon: User, label: "我的" },
|
||||
]
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user