We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34847f0 commit 7467155Copy full SHA for 7467155
src/utils/routeConvert.js
@@ -16,11 +16,9 @@ export function convertRoutes (nodes) {
16
if (!node.children || !node.children.length) continue
17
18
node.children.forEach(child => {
19
- console.log('child', child)
20
// 转化相对路径
21
if (child.path[0] !== '/' && !child.path.startsWith('http')) {
22
child.path = node.path.replace(/(\w*)[/]*$/, `$1/${child.path}`)
23
- console.log('child.path', child.path)
24
}
25
})
26
0 commit comments