Skip to content

Commit 0692ec7

Browse files
committed
fix: menu init
1 parent 52462d8 commit 0692ec7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/更新日志.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ abbrlink: 179nqpxt
88

99
### 1.6.1
1010

11-
`2021-12-24`
11+
`2021-12-27`
1212

1313
- **Fix**
1414

packages/crd-seed/layout/utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function getOpenSubMenuKeys({
1313
menuOpenKeys
1414
}) {
1515
const result = []
16+
console.log('menuSource', menuSource)
1617
getOpenSubMenuKeysForAbbrLink(
1718
menuSource,
1819
decodeURI(pathname),
@@ -37,8 +38,8 @@ function getOpenSubMenuKeysForAbbrLink(source, pathname, result) {
3738
result.pop()
3839
} else {
3940
if (
40-
pathname.indexOf(mdconf.abbrlink) > -1
41-
|| (pathname === source[i].routePath)
41+
pathname.indexOf(mdconf.abbrlink) > -1 // used with abbrlink
42+
|| (pathname.indexOf(source[i].routePath) > -1) // used not with abbrlink
4243
) {
4344
return true
4445
}

0 commit comments

Comments
 (0)