File tree Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 55
66<script lang="ts" setup>
77import Nav from " @/components/Nav.vue" ;
8- </script >
9-
8+ </script >
Original file line number Diff line number Diff line change 6262<script lang="ts" setup>
6363import { computed } from " vue" ;
6464import { useRouter } from " vue-router" ;
65- import { routes } from " @/router/index " ;
65+ import { routes } from " @/router" ;
6666
6767const router = useRouter ();
6868const activeRoute = computed (() => router .currentRoute .value .path );
6969const isActive = (path : string ) => path === activeRoute .value ;
7070 </script >
71+
72+ <style lang="scss" scoped>
73+ $blc : #000 ;
74+ $lblc : rgba ($blc , 0.65 );
75+
76+ a {
77+ text-decoration : none ;
78+ color : $lblc ;
79+ transition : all 0.25s ;
80+ }
81+
82+ ul {
83+ list-style : none ;
84+ }
85+
86+ .nav-link { border-top : 1px solid rgba ($lblc , 0.01 ); }
87+
88+ .nav-link.router-link-active.router-link-exact-active { border-top : 1px solid rgba ($lblc , 0.2 ); }
89+ </style >
Original file line number Diff line number Diff line change 11import { createApp } from "vue" ;
2- import App from "./App.vue" ;
3- import { router } from "./router" ;
2+
3+ import App from "@/App.vue" ;
4+ import { router } from "@/router" ;
45
56import "bootstrap/scss/bootstrap.scss" ;
67import "bootstrap-icons/font/bootstrap-icons.css" ;
78
89const app = createApp ( App ) . use ( router ) ;
9-
10- router . isReady ( ) . then ( ( ) => app . mount ( "#app" ) ) ;
10+ app . mount ( "#app" )
11+ // router.isReady().then(() => app.mount("#app"));
You can’t perform that action at this time.
0 commit comments