Logo.vue 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="logo-container">
  3. <img alt="logo" src="@/assets/csthyylogoplain.png"/>
  4. <h1 v-if="showText">
  5. {{ systemTitle }}
  6. <br/>
  7. <span style="font-size: 12px">编码:{{ systemStore.hospitalCode }} </span>
  8. </h1>
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. import {systemTitle} from '@/config'
  13. import {useSystemStore} from "@/pinia/system-store";
  14. withDefaults(defineProps<{
  15. showText?: boolean;
  16. }>(), {
  17. showText: true
  18. })
  19. const systemStore = useSystemStore()
  20. </script>
  21. <style lang="scss">
  22. .logo-container {
  23. display: flex;
  24. align-items: center;
  25. width: 100%;
  26. background-color: var(--el-menu-bg-color);
  27. img {
  28. width: 28px
  29. }
  30. h1 {
  31. font-size: 12px;
  32. white-space: nowrap;
  33. color: black;
  34. margin-left: 5px;
  35. }
  36. }
  37. </style>