diff --git a/src/layouts/components/BreadCrumb.vue b/src/layouts/components/BreadCrumb.vue index 3e38e29..a85ef4f 100644 --- a/src/layouts/components/BreadCrumb.vue +++ b/src/layouts/components/BreadCrumb.vue @@ -72,9 +72,9 @@ function getDropOptions(list = []) { })) } -function handleDropSelect(item) { - if (item.path && item.code !== route.name) { - router.push(item.path) +function handleDropSelect(code) { + if (code && code !== route.name) { + router.push({ name: code }) } }