|
@@ -153,12 +153,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { computed, ref, onMounted } from 'vue'
|
|
|
|
|
|
|
+import { computed, ref } from 'vue'
|
|
|
import { ElMessage, ElDialog } from 'element-plus'
|
|
import { ElMessage, ElDialog } from 'element-plus'
|
|
|
import { Document, View, CopyDocument, Reading, List, Link, WarningFilled, ArrowRight } from '@element-plus/icons-vue'
|
|
import { Document, View, CopyDocument, Reading, List, Link, WarningFilled, ArrowRight } from '@element-plus/icons-vue'
|
|
|
import StreamMarkdown from './StreamMarkdown.vue'
|
|
import StreamMarkdown from './StreamMarkdown.vue'
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
report: {
|
|
report: {
|
|
|
type: Object,
|
|
type: Object,
|
|
@@ -192,15 +191,6 @@ const getSimilarityType = (similarity) => {
|
|
|
return 'danger'
|
|
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
|
|
// 获取文件来源URL
|
|
|
const sourceUrl = computed(() => {
|
|
const sourceUrl = computed(() => {
|
|
|
// 调试日志:查看report对象结构
|
|
// 调试日志:查看report对象结构
|