<template>
  <div class="page-toolbar">
    <el-button type="primary" plain @click="goBack">返回</el-button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";

const router = useRouter();

const goBack = () => {
  router.go(-1);
};
</script>
<style lang="scss" scoped>
.page-toolbar {
  padding: 10px 40px;
  display: flex;
  justify-content: flex-end;
  background: #fff;
  .el-button {
    margin-right: 10px;
  }
}
</style>
