Skip to content

Commit

Permalink
更新 TopNav.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnjk committed Sep 14, 2024
1 parent 90737f8 commit 25a0d36
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions components/TopNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export default {
}
},
computed: {
username(){
return localStorage.getItem('ms_username') || '';
},
toIndex(){ // 根据路径绑定到对应的一级菜单,防止页面刷新重新跳回第一个
return '/' + this.$route.path.split('/')[1];
},
Expand Down Expand Up @@ -76,35 +73,6 @@ export default {
width: 160px;
vertical-align: middle;
}
/* --------------- 用户头像区域的样式 ---------------- */
.header-right {
float: right;
padding-right: 50px;
}
.header-user-con {
display: flex;
align-items: center;
justify-content: center;
height: 70px;
}
.user-avator {
margin-left: 20px;
}
.user-avator img {
display: block;
width: 40px;
height: 40px;
border-radius: 50%;
}
.user-name {
margin-left: 10px;
}
.el-dropdown-link {
cursor: pointer;
}
.el-dropdown-menu__item {
text-align: center;
}
/* --------------- 水平一级菜单栏的样式--------------------- */
.el-menu.el-menu--horizontal {
border-bottom: none !important;
Expand Down

0 comments on commit 25a0d36

Please sign in to comment.