<script setup>
function toTop() {
  document.body.scrollTop = document.documentElement.scrollTop = 0;
}
</script>

<template>
  <div class="toTop-image">
    <img src="~@/assets/img/icons/returntop.png" @click="toTop" />
  </div>
</template>

<style lang="scss" scoped>
.toTop-image {
  position: fixed;
  right: 20px;
  bottom: 150px;
  z-index: 10;
  img {
    width: 40px;
    cursor: pointer;
  }
}
</style>
