Commit 3bc0f27a authored by zhang's avatar zhang

fix: 修复点击首页标题时无法获取页面的错误

parent d6294d48
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
) )
const first = matched[0] const first = matched[0]
if (!this.isDashboard(first)) { if (!this.isDashboard(first)) {
matched = [{ path: '/index', meta: { title: '首页' } }].concat(matched) matched = [{ path: '/', meta: { title: '首页' } }].concat(matched)
} }
const temp = matched.filter( const temp = matched.filter(
item => item.meta && item.meta.title && item.meta.breadcrumb !== false item => item.meta && item.meta.title && item.meta.breadcrumb !== false
......
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