소스 검색

fix(choiceQuestionDetailDialog): 修复六帽子题内容读取逻辑

调整了从lookWorkData.content中获取题目内容的字段名,从c改为hatContent,匹配实际数据结构,避免无法正确加载题目内容
lsc 3 일 전
부모
커밋
5277759e2d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/Student/components/choiceQuestionDetailDialog.vue

+ 2 - 2
src/views/Student/components/choiceQuestionDetailDialog.vue

@@ -1347,7 +1347,7 @@ const hatConfig = [
 const sixHatList = computed(() => {
   if (!lookWorkData.value?.content) return []
   const hats = lookWorkData.value.content.hats || []
-  const c = lookWorkData.value.content.c || {}
+  const c = lookWorkData.value.content.hatContent || {}
   return hatConfig
     .filter(h => hats.includes(h.key))
     .map(h => ({ ...h, content: c[h.key] || '' }))
@@ -2929,7 +2929,7 @@ const aiAnalysisRefresh832 = () => {
         chatMsg += `\n${submitter} - 讨论场景:\n${c.scenario}\n`
       }
       const hats = c.hats || []
-      const hatContent = c.c || c.hatContent || {}
+      const hatContent = c.hatContent || {}
       hats.forEach((hat: string) => {
         const label = hatNames[hat] || hat
         const content = hatContent[hat] || ''