Skip to content

Commit 6cd0b65

Browse files
clarkdopi0
authored andcommitted
fix: remove route name to make dynamic navbar useable
1 parent 86069cd commit 6cd0b65

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: lib/module.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const defaults = {
1616
main: true,
1717
pushState: true,
1818
pushStateSeparator: '!#',
19-
pushStateRoot: null,
20-
iosDynamicNavbar: false
19+
pushStateRoot: null
2120
}
2221
}
2322

Diff for: lib/templates/routes.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ function recursiveRoutes(routes, tab, components) {
1616
res += tab + '{\n'
1717
res += tab + '\tpath: ' + JSON.stringify(route.path) + ',\n'
1818
res += tab + '\tcomponent: ' + route._name
19-
res += (route.name) ? ',\n\t' + tab + 'name: ' + JSON.stringify(route.name) : ''
2019
res += (route.children) ? ',\n\t' + tab + 'children: [\n' + recursiveRoutes(routes[i].children, tab + '\t\t', components) + '\n\t' + tab + ']' : ''
2120
res += (route.tabs) ? ',\n\t' + tab + 'tabs: ' + JSON.stringify(route.tabs) : ''
2221
res += '\n' + tab + '}' + (i + 1 === routes.length ? '' : ',\n')
@@ -34,4 +33,4 @@ const _routes = recursiveRoutes(router.routes, '\t\t', _components)
3433

3534
export default [
3635
<%= _routes %>
37-
]
36+
]

0 commit comments

Comments
 (0)