Explorar el Código

修改:靶向提升-修改学生作答详情图片展示

lm hace 5 días
padre
commit
c105ea508d

+ 1 - 1
src/views/targetImprove/consolidate/index.vue

@@ -116,7 +116,7 @@
               <!-- 学生作答区域 -->
               <StudentAnswerDetail v-if="item?.operationType == 'stuAnswerDetail'" 
                   :studentAnswerInfo="item"
-                  :answerImg="(item.studentAnswer?.split(/,(?=http)/)?.map(img=>({name:img,url:img})) || [])"
+                  :answerImg="(item.studentAnswer?.split(/[,、,](?=http)/)?.map(img=>({name:img,url:img})) || [])"
               />
             </div>
           </div>

+ 1 - 1
src/views/targetImprove/practice/practiceResults/practiceDetail.vue

@@ -86,7 +86,7 @@
                     <!-- 作答详情区域 -->
                     <StudentAnswerDetail v-if="item?.operationType == 'stuAnswerDetail'" 
                         :studentAnswerInfo="item"
-                        :answerImg="(item.studentAnswer?.split(/,(?=http)/)?.map(img=>({name:img,url:img})) || [])"
+                        :answerImg="(item.studentAnswer?.split(/[,、,](?=http)/)?.map(img=>({name:img,url:img})) || [])"
                     />
                 </li>
             </ul>