diff options
author | vnugent <public@vaughnnugent.com> | 2024-06-05 15:26:15 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-06-05 15:26:15 -0400 |
commit | eefba88ac4e2c70517aa71c79ed94c346f9de554 (patch) | |
tree | 3bfea4b8006b9b4a7e0985b34c3560597a133404 /front-end/src/bootstrap/components/Header.vue | |
parent | 9eed4022a79f2cba139c9f8a359bfc8c1f9c31c5 (diff) |
chore: Package updates
Diffstat (limited to 'front-end/src/bootstrap/components/Header.vue')
-rw-r--r-- | front-end/src/bootstrap/components/Header.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/front-end/src/bootstrap/components/Header.vue b/front-end/src/bootstrap/components/Header.vue index 25c857e..db004d8 100644 --- a/front-end/src/bootstrap/components/Header.vue +++ b/front-end/src/bootstrap/components/Header.vue @@ -1,7 +1,7 @@ <!-- eslint-disable vue/max-attributes-per-line --> <script setup lang="ts"> -import { debounce, find } from 'lodash-es' +import { debounce, find, isEqual, toLower } from 'lodash-es' import { useElementSize, onClickOutside, useElementHover, get } from '@vueuse/core' import { computed, ref, toRefs } from 'vue' import { useEnvSize } from '@vnuge/vnlib.browser' @@ -67,7 +67,7 @@ const gotoRoute = (route: string) => { const allRoutes = router.getRoutes(); //Try to find the route by its path - const goto = find(allRoutes, { path: route }); + const goto = find(allRoutes, r => isEqual(toLower(r.path), toLower(route))); if (goto) { //navigate to the route manually |