DocumentAnswer.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <document-cards :hasUpload="false" :uploadFile="true" :data="data" :hasSlider="false" :agentId="agentId" />
  3. </template>
  4. <script>
  5. import DocumentCards from "@/components/DocumentCards.vue";
  6. import { defineComponent, ref, inject, reactive } from "vue";
  7. export default defineComponent({
  8. components: {
  9. DocumentCards
  10. },
  11. props: ["agentId"],
  12. setup() {
  13. const data = ref([
  14. {
  15. background: "rgba(72, 177, 244, 0.06)",
  16. color: "rgb(72, 177, 244)",
  17. img: "/src/assets/answer/1-1.png",
  18. title: "自定义个人文档",
  19. content: "支持个人文档上传,以列表形式管理个人文档库"
  20. },
  21. {
  22. background: "rgba(158, 128, 255, 0.06)",
  23. color: "rgb(158, 128, 255)",
  24. img: "/src/assets/answer/1-2.png",
  25. title: "多文档问答",
  26. content: "支持勾选多个文档,实现基于限定文档的问答"
  27. },
  28. ]);
  29. return {
  30. data
  31. };
  32. }
  33. });
  34. </script>