HomeBtn.vue 631 B

1234567891011121314151617181920212223242526272829
  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 UrlUtils from "~/services/utils/urlUtils";
  17. const runtimeConfig = useRuntimeConfig()
  18. const homeUrl = UrlUtils.join(runtimeConfig.baseUrlAdminLegacy, '#', 'dashboard')
  19. const { mdAndUp } = useDisplay()
  20. const btn = ref(null);
  21. </script>
  22. <style scoped>
  23. </style>