<template>
  <div class="platform-logo" @click="goHome">
    <img :src="logo" class="platform-logo-img" />
  </div>
</template>
<script lang="ts" setup>
  import { PageEnum } from '/@/enums/pageEnum';
  import logo from '/@/assets/images/logo.svg';
  import { useRouter } from 'vue-router';

  const router = useRouter();
  function goHome() {
    router.push(PageEnum.BASE_HOME);
  }
</script>
<style lang="less" scoped>
  .platform-logo {
    width: 90px;
    height: 54px;
    background: #fff;
    border-radius: 0;
    border: 1px solid #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .platform-logo-img {
    width: 40px;
    height: 18px;
  }
</style>
