Przeglądaj źródła

feat(speaking): wire streamed class report into SpeakingClassPanel

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jimmylee 1 miesiąc temu
rodzic
commit
e707883d90

+ 7 - 5
src/views/Student/components/SpeakingClassPanel/index.vue

@@ -37,10 +37,12 @@
 
         <!-- AI 总结 -->
         <AISummary
-          :bullets="aiBullets"
-          :loading="aiLoading"
-          :generatedAt="aiGeneratedAt"
-          @refresh="refreshAISummary"
+          :completionLine="completionLine"
+          :markdown="reportMarkdown"
+          :streaming="reportStreaming"
+          :generatedAt="reportGeneratedAt"
+          :error="reportError"
+          @refresh="refreshReport"
         />
       </template>
     </div>
@@ -90,7 +92,7 @@ const locale = ref<Locale>(
 
 const {
   summaries, loading, error, fetchClassSummary, scheduleRefetch,
-  aiBullets, aiLoading, aiGeneratedAt, refreshAISummary,
+  completionLine, reportMarkdown, reportStreaming, reportGeneratedAt, reportError, refreshReport,
 } = useClassSummary({
   configId: toRef(props, 'configId'),
   studentArray: toRef(props, 'studentArray'),