HomeBtn.vue 521 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div>
  3. <v-btn
  4. ref="btn"
  5. icon="fas fa-home"
  6. size="small"
  7. :href="homeUrl"
  8. class="ml-2 text-ot-white"
  9. />
  10. <v-tooltip :activator="btn" :text="$t('welcome')" location="bottom" />
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import {useRuntimeConfig} from "#app";
  15. import {ref} from "@vue/reactivity";
  16. const runtimeConfig = useRuntimeConfig()
  17. const homeUrl = runtimeConfig.baseUrlAdminLegacy
  18. const btn = ref(null);
  19. </script>
  20. <style scoped>
  21. </style>