fix: M-CHAT-A5 MaterialDetailView 传 knowledgeBaseId + title
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
0af5b6554d
commit
1bbcf0acfb
@ -126,7 +126,9 @@ struct MaterialDetailView: View {
|
|||||||
NavigationLink(value: Route.materialReader(
|
NavigationLink(value: Route.materialReader(
|
||||||
materialId: knowledgeBaseId,
|
materialId: knowledgeBaseId,
|
||||||
filePath: filePath,
|
filePath: filePath,
|
||||||
materialType: fileType
|
materialType: fileType,
|
||||||
|
knowledgeBaseId: knowledgeBaseId,
|
||||||
|
title: fileName
|
||||||
)) {
|
)) {
|
||||||
HStack(spacing: 8) {
|
HStack(spacing: 8) {
|
||||||
Image(systemName: fileType == .pdf || fileType == .word || fileType == .excel ? "eye" : "book")
|
Image(systemName: fileType == .pdf || fileType == .word || fileType == .excel ? "eye" : "book")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user