<template>
  <div class="L-task-info">
    <el-button type="primary" @click="sendBack" class="fanhuipiaofu" size="mini">返回</el-button>
  </div>
</template>

<script setup>
import { useRoute, useRouter } from 'vue-router';

const route = useRoute();
const router = useRouter();

console.log('当前路由参数:', route.query);

const sendBack = () => {
  router.go(-1);
};
</script>

<style lang="scss" scoped>
.fanhuipiaofu {
  position: absolute;
  right: 20px;
  top: 10px;
}
</style>