| | |
| | | <template> |
| | | <!-- 头部 --> |
| | | <el-header> |
| | | <!-- 展开控制按钮 --> |
| | | <!-- <hamburger :is-active="opened" class="hamburger-container" @toggleClick="toggleSideBar" /> --> |
| | | <!-- 右侧菜单 --> |
| | | <div class="header-title"> |
| | | <div class="bell"> |
| | | <el-icon class="el-icon-bell" style="color: white"></el-icon> |
| | | <!-- 右侧菜单 --> |
| | | <div class="header-title"> |
| | | <div class="bell"> |
| | | <el-icon class="el-icon-bell" style="color: white"></el-icon> |
| | | </div> |
| | | <div class="userinfo"> |
| | | <div class="avatar"></div> |
| | | <span class="username">admin</span> |
| | | </div> |
| | | <div class="loginout" @click="loginout">退出登录</div> |
| | | </div> |
| | | <div class="userinfo"> |
| | | <div class="avatar"></div> |
| | | <span class="username">admin</span> |
| | | </div> |
| | | <div class="loginout">退出登录</div> |
| | | </div> |
| | | </el-header> |
| | | </el-header> |
| | | </template> |
| | | |
| | | <script> |
| | | import hamburger from "@/components/hamburger" |
| | | export default { |
| | | data(){ |
| | | data() { |
| | | return { |
| | | opened:false |
| | | } |
| | | opened: false, |
| | | }; |
| | | }, |
| | | components:{ |
| | | hamburger |
| | | methods:{ |
| | | loginout(){ |
| | | this.$router.push({path:"/login"}) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | align-items: center; |
| | | justify-content: flex-end; |
| | | padding: 0; |
| | | width: 100%; |
| | | .header-title { |
| | | display: flex; |
| | | align-items: center; |