Skip to content

Commit

Permalink
Merge pull request jzfai#8 from chencheng365/master
Browse files Browse the repository at this point in the history
fix: 解决el-menu默认选中问题
  • Loading branch information
jzfai authored Jun 3, 2022
2 parents 4e5b83a + 86a1d59 commit e4adcfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout/components/Sidebar/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ import { useAppStore } from '@/store/app'
import { usePermissionStore } from '@/store/permission'
const scssJson = dillScssExportToJson(scssExportJson)
const activeMenu = computed(() => {
const { meta, fullPath } = route
const { meta, path } = route
// if set path, the sidebar will highlight the path you set
if (meta.activeMenu) {
return meta.activeMenu
}
return fullPath
return path
})
</script>

Expand Down

0 comments on commit e4adcfd

Please sign in to comment.