mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
fix: 修复独立应用nav选中问题 (#6835)
Co-authored-by: wanglinfang <wanglinfang@MacBook-Pro.local>
This commit is contained in:
parent
38d26ae414
commit
2c4201ae18
@ -897,6 +897,7 @@ const ConditionBuilderWithRemoteOptions = withRemoteConfig({
|
|||||||
evalExpression(link.activeOn as string, location)
|
evalExpression(link.activeOn as string, location)
|
||||||
: !!(
|
: !!(
|
||||||
link.hasOwnProperty('to') &&
|
link.hasOwnProperty('to') &&
|
||||||
|
link.to !== null && // 也可能出现{to: null}的情况(独立应用)filter会把null处理成'' 那默认首页会选中很多菜单项 {to: ''}认为是有效配置
|
||||||
env &&
|
env &&
|
||||||
env.isCurrentUrl(filter(link.to as string, data))
|
env.isCurrentUrl(filter(link.to as string, data))
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user