Fix breadcrumb dashboard detection
This commit is contained in:
@@ -72,10 +72,11 @@ export default {
|
||||
},
|
||||
isDashboard(route) {
|
||||
const name = route && route.name
|
||||
if (!name) {
|
||||
const path = route && route.path
|
||||
if (!name && !path) {
|
||||
return false
|
||||
}
|
||||
return name.trim() === 'Index'
|
||||
return (name && name.trim() === 'Index') || path === '/index'
|
||||
},
|
||||
handleLink(item) {
|
||||
const { redirect, path } = item
|
||||
|
||||
Reference in New Issue
Block a user