Skip to content

Commit 6b02c65

Browse files
author
allen
committed
feat: 菜单样式优化
1 parent f445ca1 commit 6b02c65

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ declare module 'vue' {
2323
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
2424
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
2525
Header: typeof import('./components/layout/Header.vue')['default']
26-
Icon: typeof import('./components/base/Icon.vue')['default']
2726
RouterLink: typeof import('vue-router')['RouterLink']
2827
RouterView: typeof import('vue-router')['RouterView']
2928
TreeMenu: typeof import('./components/base/TreeMenu.vue')['default']

src/components/layout/Aside.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,18 @@ function getMenus(route: any, path: string) {
7070
width: 70px;
7171
&::before {
7272
width: 70px;
73-
content: 'ADMIN';
73+
background-image: url('@/assets/logo.png');
74+
background-repeat: no-repeat;
75+
background-position: center;
76+
background-size: auto 70%;
77+
content: '';
7478
}
7579
}
7680
.v-leave-to {
7781
width: 200px;
7882
&::before {
7983
width: 200px;
84+
background-image: none;
8085
content: attr(data-text);
8186
}
8287
}

0 commit comments

Comments
 (0)