Skip to content

Commit

Permalink
fix: fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunn committed Feb 14, 2025
1 parent 177ccf9 commit 08b5353
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/plugins/page/src/composable/usePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,11 @@ const handlePageDetail = async (pages, currentPage) => {
const { ROOT_ID } = pageSettingState

if (pages.length > 0) {
pages = await Promise.all(
await Promise.all(
pages.map(async (page, index) => {
updatePageContent(page, currentPage)
await fetchPageDetailIfNeeded(page)
updateParentId(page, pages, index, ROOT_ID)

return page
})
)
}
Expand Down

0 comments on commit 08b5353

Please sign in to comment.