Skip to content

Commit ed67182

Browse files
committed
docs: update
1 parent d75c225 commit ed67182

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

packages/crd-seed/component/Menu/SubMenu.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ function SubMenu({
3434
onHoverKey,
3535
defaultOpenKeys = [],
3636
} = useMenuContext()
37-
console.log('defaultOpenKeys', defaultOpenKeys)
38-
console.log('keyValue', keyValue)
3937
const [menuOpen, setMenuOpen] = useState(defaultOpenKeys.indexOf(keyValue) !== -1)
4038
const curSubmenu = useRef(null)
4139
const popupSubMenu = useRef(null)

packages/crd-seed/layout/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ function BasicLayout({
2222
menuSource,
2323
indexProps,
2424
}) {
25-
console.log('menuSource', menuSource)
26-
2725
const { pathname } = location
28-
console.log('location', location)
2926
const { user, repo, branch = 'main', language = 'en', menuOpenKeys } = DOCSCONFIG || {}
3027
const [inlineCollapsed, setInlineCollapsed] = useState(isMobile)
3128
const [selectedKey, setSelectedKey] = useState('')
@@ -34,7 +31,6 @@ function BasicLayout({
3431
menuSource,
3532
menuOpenKeys
3633
})
37-
console.log('curOpenKeys', curOpenKeys)
3834
const defaultPath = (routeData.find(data => data.path === '/README')
3935
&& routeData.find(data => data.path === '/README').mdconf
4036
&& routeData.find(data => data.path === '/README').mdconf.abbrlink) || 'README'
@@ -74,8 +70,6 @@ function BasicLayout({
7470
{menus.map((item, index) => {
7571
const { mdconf, routePath } = item || {}
7672
const { abbrlink } = mdconf || {}
77-
console.log('item', item)
78-
// console.log('item', item)
7973
const path = abbrlink ? `/${abbrlink}` : routePath
8074
// item.path carrys .md here.
8175
return item.children && item.children.length > 0 ? (
@@ -141,8 +135,6 @@ function BasicLayout({
141135
setSelectedKey(keyValue)
142136
}}
143137
defaultOpenKeys={curOpenKeys}
144-
// todo: smart to fill defaultOpenKeys
145-
// defaultOpenKeys={['/docs/主题']}
146138
>
147139
{renderSubMenuItem(menus || [])}
148140
</Menu>

packages/crd-seed/layout/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* }
77
* output: ["/BasicSkill", "/BasicSkill/basis"]
88
*/
9-
// todo: optimize for depth-first traversal
109
function getOpenSubMenuKeys({
1110
pathname,
1211
menuSource,

0 commit comments

Comments
 (0)