<script setup lang="ts">
import {useRoute} from "vue-router";
const route = useRoute()
import {House} from "@element-plus/icons-vue";
</script>

<template>
  <div class="header">
    <el-icon class="icon"><House /></el-icon>
    /{{route.name}}
  </div>
  <div class="avatar"></div>
</template>

<style scoped>
.header {
  width: 100%;
  height: 50px;
  background-color: white;
  .icon {
    display: inline-block;
    margin-left: 20px;
    line-height: 50px;
  }
}
.avatar {
  width: 500px;
  height: 250px;
  background-color: pink;
}
</style>