Commit 5d44ec17 authored by 李苏's avatar 李苏 💬

headerSearch组件去除最外层

parent 4c648359
...@@ -118,11 +118,15 @@ export default { ...@@ -118,11 +118,15 @@ export default {
if (router.meta && router.meta.title) { if (router.meta && router.meta.title) {
data.title = [...data.title, router.meta.title] data.title = [...data.title, router.meta.title]
if (router.redirect !== 'noRedirect') { // if (router.redirect !== 'noRedirect') {
// only push the routes with title
// special case: need to exclude parent router without redirect // res.push(data)
// }
if (!router.redirect) {
res.push(data) res.push(data)
} }
//
} }
// recursive child routes // recursive child routes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment