Skip to content

Commit

Permalink
fix: #153
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 committed Oct 11, 2021
1 parent 46386af commit c2f02a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ export function adapterWebsiteList(websiteList: any[], parentItem?: any) {
item.createdAt ||= createdAt

if (Array.isArray(item.nav)) {
if (item.nav[0]?.url) {
item.nav = item.nav.filter(item => !item.ownVisible || isLogin);
}
adapterWebsiteList(item.nav, item)
}

Expand Down

0 comments on commit c2f02a7

Please sign in to comment.