@@ -53,9 +53,11 @@ import {
5353 UserAvatar ,
5454 ExpandAll ,
5555 Equalizer ,
56+ ImportExport ,
5657} from ' @vicons/carbon' ;
5758import { useAppStore } from ' ../../store' ;
5859import TheAsideIcon from ' ./the-aside-icon.vue' ;
60+
5961const router = useRouter ();
6062const route = useRoute ();
6163const appStore = useAppStore ();
@@ -90,13 +92,13 @@ const mainNavList = ref([
9092 icon: markRaw (ExpandAll ),
9193 isLink: false ,
9294 },
93- // {
94- // id: 'import-export ',
95- // path: '/import-export ',
96- // name: 'import-export ',
97- // icon: markRaw(SaveSeries ),
98- // isLink: false,
99- // },
95+ {
96+ id: ' backup-restore ' ,
97+ path: ' /backup-restore ' ,
98+ name: ' backupRestore ' ,
99+ icon: markRaw (ImportExport ),
100+ isLink: false ,
101+ },
100102 {
101103 id: ' github' ,
102104 path: ' ' ,
@@ -130,6 +132,7 @@ interface RouteItem {
130132 name: string ;
131133 isLink: boolean ;
132134}
135+
133136const isActive = (item : RouteItem ) => {
134137 return item .path === route .path ;
135138};
@@ -157,10 +160,12 @@ const navClick = (item: RouteItem) => {
157160 display : flex ;
158161 flex-direction : column ;
159162 border-right : 1px solid var (--border-color );
163+
160164 .main-nav {
161165 flex : 1 ;
162166 height : 0 ;
163167 }
168+
164169 .icon-item {
165170 height : var (--aside-width );
166171 height : 40px ;
@@ -171,12 +176,15 @@ const navClick = (item: RouteItem) => {
171176 align-items : center ;
172177 color : var (--text-color );
173178 cursor : pointer ;
179+
174180 .n-icon {
175181 opacity : 0.4 ;
176182 transition : 0.3s ;
177183 }
184+
178185 & .active {
179186 position : relative ;
187+
180188 & ::before {
181189 content : ' ' ;
182190 position : absolute ;
@@ -186,10 +194,12 @@ const navClick = (item: RouteItem) => {
186194 width : 5px ;
187195 background-color : var (--border-color );
188196 }
197+
189198 .n-icon {
190199 opacity : 1 ;
191200 }
192201 }
202+
193203 & :hover {
194204 .n-icon {
195205 opacity : 0.9 ;
0 commit comments