<script setup>
const props=defineProps({
  onClick:{
    type:Function,
  }
})
const route = useRoute()

</script>

<template>
  <van-floating-bubble
      v-if="route.path!=='/'"
      axis="xy"
      magnetic="x"
      :offset="{ x: 300, y: 50 }"
      @click="onClick"
  >
    回到直播
  </van-floating-bubble>
</template>

<style>
.van-floating-bubble{
  width: 70px;
  height: 70px;
border-radius: 5px!important;
}
</style>