fix: use file name as title

This commit is contained in:
eeee0717
2025-06-23 18:59:53 +08:00
parent 794fc2721e
commit 4d8c60c3a5
+1 -1
View File
@@ -217,7 +217,7 @@ export const formatCitationsFromBlock = (block: CitationMessageBlock | undefined
const fileMatch = result.sourceUrl.match(filePattern)
let url = result.sourceUrl
let title = result.sourceUrl
let title = result.sourceUrl.split('/').pop() || 'Unknown File'
const showFavicon = true
// 如果匹配文件链接格式 [filename](http://file/xxx)