XieXing пре 4 месеци
родитељ
комит
e919f02b2f
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      shudao-vue-frontend/src/components/FileReportCard.vue

+ 7 - 0
shudao-vue-frontend/src/components/FileReportCard.vue

@@ -241,15 +241,22 @@ const openSourceUrl = () => {
 }
 
 const openFile = () => {
+  console.log('📄 [FileReportCard] openFile 被调用')
+  console.log('📄 [FileReportCard] file_path:', props.report.file_path)
+  
   if (props.report.file_path) {
     const fileName = props.report.report?.display_name || props.report.source_file || '未命名文件'
+    console.log('📄 [FileReportCard] emit preview-file, fileName:', fileName)
     emit('preview-file', {
       filePath: props.report.file_path,
       fileName: fileName
     })
+  } else {
+    console.warn('⚠️ [FileReportCard] file_path 为空')
   }
 }
 
+
 const copyReport = async () => {
   const text = `
 文件名: ${props.report.source_file}