<template>
  <div class="user__info">
    <el-image :src="imgUrl" alt="" />
    <div class="user__info--right">
      <span>管理员：</span>
      <span>{{ username }}</span>
      <div>中科盛阳信息技术有限公司</div>
    </div>
  </div>
</template>

<script setup>
// import Cookies from 'js-cookie'

const imgUrl = new URL('../../assets/logo/logo.png', import.meta.url).href

const username = localStorage.getItem('username')
</script>

<style scoped lang="scss">
.user__info {
  display: flex;
  align-items: center;
  padding: 20px;
  .user__info--right {
    margin-left: 20px;
    span {
      font-size: 26px;
    }
    div {
      font-size: 14px;
    }
  }
}
</style>
