|
|
@@ -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}
|