mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-25 07:26:49 +00:00
fix gitbook build
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import NavPostListEmpty from './NavPostListEmpty'
|
||||
import { useRouter } from 'next/router'
|
||||
import NavPostItem from './NavPostItem'
|
||||
import { useGitBookGlobal } from '..'
|
||||
|
||||
/**
|
||||
* 博客列表滚动分页
|
||||
@@ -11,13 +10,13 @@ import { useGitBookGlobal } from '..'
|
||||
* @constructor
|
||||
*/
|
||||
const NavPostList = (props) => {
|
||||
const { filteredPosts } = useGitBookGlobal()
|
||||
const { filteredPosts } = props
|
||||
|
||||
const router = useRouter()
|
||||
let selectedSth = false
|
||||
|
||||
// 处理是否选中
|
||||
filteredPosts.map((group) => {
|
||||
filteredPosts?.map((group) => {
|
||||
let groupSelected = false
|
||||
for (const post of group?.items) {
|
||||
if (router.asPath.split('?')[0] === '/' + post.slug) {
|
||||
|
||||
Reference in New Issue
Block a user