CHAT-404 P0 | 资料阅读页 AI 入口传 material scope + 阅读位置 #42

Closed
opened 2026-06-06 16:24:13 +08:00 by wangdl · 1 comment
Owner

目标

MaterialReaderView 的 AI 对话按钮传 material scope + readingPosition。

传参

ChatEntryContext(scopeType: .material, scopeId: material.id, initialReadingPosition: currentPosition, createdFrom: .materialReader)

## 目标 MaterialReaderView 的 AI 对话按钮传 material scope + readingPosition。 ## 传参 ChatEntryContext(scopeType: .material, scopeId: material.id, initialReadingPosition: currentPosition, createdFrom: .materialReader)
wangdl added this to the M-CHAT:AI 会话 Scope 系统重构(iOS 侧) milestone 2026-06-06 16:24:13 +08:00
Author
Owner

完成

MaterialReaderView 工具栏新增 AI 对话按钮:

NavigationLink(value: Route.aiChat(context: ChatEntryContext(
  scopeType: .material,
  scopeId: vm.materialId,
  scopeName: title,
  parentKnowledgeBaseId: nil,
  createdFrom: "material_reader"
)))

注意: parentKnowledgeBaseId 暂传 nil,后续需从 Route params 或 ViewModel 获取。

## 完成 MaterialReaderView 工具栏新增 AI 对话按钮: ```swift NavigationLink(value: Route.aiChat(context: ChatEntryContext( scopeType: .material, scopeId: vm.materialId, scopeName: title, parentKnowledgeBaseId: nil, createdFrom: "material_reader" ))) ``` 注意: parentKnowledgeBaseId 暂传 nil,后续需从 Route params 或 ViewModel 获取。
Sign in to join this conversation.
No description provided.