merge main & release 4.0.0

This commit is contained in:
tangly1024
2023-07-09 21:11:50 +08:00
parent 1fc45fa624
commit 2b3d1edd71
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ const NavPostList = (props) => {
let selectedSth = false
// 处理是否选中
filteredPostGroups.map((group) => {
filteredPostGroups?.map((group) => {
let groupSelected = false
for (const post of group?.items) {
if (router.asPath.split('?')[0] === '/' + post.slug) {
@@ -28,7 +28,7 @@ const NavPostList = (props) => {
})
// 如果都没有选中默认打开第一个
if (!selectedSth && filteredPostGroups && filteredPostGroups.length > 0) {
if (!selectedSth && filteredPostGroups && filteredPostGroups?.length > 0) {
filteredPostGroups[0].selected = true
}