Skip to content

Commit 9035f20

Browse files
committed
fix(navbar): adds missing settings page as possible active route
1 parent ae22dff commit 9035f20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/common/navbar/NavbarComponent.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ const routes = [
2626
Route.Search,
2727
];
2828
29+
const activableRoutes = [...routes, Route.Settings];
30+
2931
const activeRoute = computed(() => {
3032
const _name = route.name?.toString();
3133
if (!_name) return;
32-
return routes.find(r => r === _name) ?? routes.find(r => _name.startsWith(r));
34+
return activableRoutes.find(r => r === _name) ?? routes.find(r => _name.startsWith(r));
3335
});
3436
3537
const isHover = ref(false);

0 commit comments

Comments
 (0)