Skip to content

Commit

Permalink
fix: 修复导航栏bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Qchengju committed Nov 29, 2024
1 parent e0cb0ec commit 6630b6c
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/components/layouts/AppThirdNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import {
BreadcrumbList,
} from "@/components/ui/breadcrumb";
import { useRoute } from "vue-router";
import { Icon } from "@iconify/vue";
const route = useRoute();
const thirdNavItems = route.meta.thirdNavItems as ThirdItemInterface[];
console.log(route);
Expand All @@ -33,11 +30,6 @@ interface ThirdItemInterface {
:key="index"
class="top-item"
>
<Icon
:icon="item.icon"
class="icon"
style="font-size: 1.2rem; margin-right: 8px;"
/>
<RouterLink :to="item.path" active-class="active" class="top-link">
{{ item.title }}
</RouterLink>
Expand Down Expand Up @@ -66,6 +58,7 @@ $font: #8c9296;
display: flex;
align-items: center;
}
.top {
&-ol {
width: 100%;
Expand Down Expand Up @@ -99,10 +92,11 @@ $font: #8c9296;
}
&-item {
text-align: center;
display: inline-flex;
// width: 80%;
width: max-content;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
margin-left: 10px;
}
&-label {
Expand All @@ -111,9 +105,11 @@ $font: #8c9296;
display: flex;
}
&-link {
line-height: 50px;
transition: all 0.3s ease-in-out;
// line-height: 50px;
width: max-content;
height: 100%;
display: flex;
align-items: center;
}
&-label {
width: 100%;
Expand Down

0 comments on commit 6630b6c

Please sign in to comment.