HomeBtn.vue 492 B

123456789101112131415161718192021222324
  1. <template>
  2. <div>
  3. <v-btn
  4. ref="btn"
  5. icon="fas fa-home"
  6. size="small"
  7. :href="homeUrl"
  8. class="on-primary"
  9. />
  10. <v-tooltip :activator="btn" :text="$t('welcome')" location="bottom" />
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import { ref } from '@vue/reactivity'
  15. import { useDisplay } from 'vuetify'
  16. import { useHomeUrl } from '~/composables/utils/useHomeUrl'
  17. const { homeUrl } = useHomeUrl()
  18. const btn = ref(null)
  19. </script>
  20. <style scoped></style>