Skip to content

Commit

Permalink
fix: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Mar 21, 2024
1 parent 9d8e005 commit f3dbe10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/amis/src/renderers/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,10 @@ const ConditionBuilderWithRemoteOptions = withRemoteConfig({
if (!!link.disabled) {
return false;
}
// 如果是mount的时候,使用用户配置的active
if (motivation === 'mount' && link.active) {
return link.active;
}
return (
motivation !== 'location-change' &&
((depth === level
Expand Down

0 comments on commit f3dbe10

Please sign in to comment.