TopLogo.vue 600 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="main" @click="toIndex">
  3. <img src="/img/logo.png" alt="">
  4. <span>聚合智慧文档</span>
  5. </div>
  6. </template>
  7. <script setup>
  8. import { useRouter } from "vue-router";
  9. const router = useRouter();
  10. const toIndex = ()=>{
  11. router.push('/')
  12. }
  13. </script>
  14. <style lang="scss" scoped>
  15. .main{
  16. width: 100%;
  17. height: 57px;
  18. display: flex;
  19. align-items: center;
  20. cursor: pointer;
  21. img{
  22. width: 57px;
  23. height: 57px;
  24. }
  25. span{
  26. font-size: 24px;
  27. color: #B7BEFF;
  28. font-family: Inter-LOGO;
  29. }
  30. }
  31. </style>