<script setup lang="ts">
import { ref } from "vue";
import PageHeader from "@/components/PageHeader.vue";
import DocumentHistoryView from "./DocumentHistoryView.vue";
import SearchHistoryView from "./SearchHistoryView.vue";

const activeKey = ref('search');
</script>

<template>
  <PageHeader title="历史记录" />
  <a-tabs v-model:activeKey="activeKey">
    <a-tab-pane key="search" tab="检索记录">
      <SearchHistoryView />
    </a-tab-pane>
    <a-tab-pane key="document" tab="浏览记录">
      <DocumentHistoryView />
    </a-tab-pane>
  </a-tabs>
</template>
