Fix breadcrumb dashboard detection

This commit is contained in:
wkc
2026-04-30 10:11:45 +08:00
parent e4a8cf4a13
commit 709a314107
9 changed files with 180 additions and 3 deletions

View File

@@ -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