Przeglądaj źródła

bugfix:补全index

XieXing 4 miesięcy temu
rodzic
commit
91fa7595ac

+ 11 - 1
shudao-vue-frontend/src/components/FileReportCard.vue

@@ -153,11 +153,12 @@
 </template>
 
 <script setup>
-import { computed, ref } from 'vue'
+import { computed, ref, onMounted } from 'vue'
 import { ElMessage, ElDialog } from 'element-plus'
 import { Document, View, CopyDocument, Reading, List, Link, WarningFilled, ArrowRight } from '@element-plus/icons-vue'
 import StreamMarkdown from './StreamMarkdown.vue'
 
+
 const props = defineProps({
   report: {
     type: Object,
@@ -191,6 +192,15 @@ const getSimilarityType = (similarity) => {
   return 'danger'
 }
 
+// 组件挂载时打印调试信息
+onMounted(() => {
+  console.log('📄 [FileReportCard] 组件挂载')
+  console.log('📄 [FileReportCard] file_path:', props.report.file_path)
+  console.log('📄 [FileReportCard] source_file:', props.report.source_file)
+  console.log('📄 [FileReportCard] 完整 report:', props.report)
+})
+
+
 // 获取文件来源URL
 const sourceUrl = computed(() => {
   // 调试日志:查看report对象结构