Browse Source

听后复述

natasha 1 year ago
parent
commit
018a3f7c8a

+ 2 - 5
src/views/exercise_questions/create/components/exercises/RepeatQuestion.vue

@@ -27,11 +27,7 @@
       <div class="content">
         <label class="title-little">内容</label>
         <ul>
-          <li
-            v-for="(item, i) in data.option_list"
-            :key="i + Math.random().toString(36).slice(-6)"
-            class="content-item repeat-option"
-          >
+          <li v-for="(item, i) in data.option_list" :key="i" class="content-item repeat-option">
             <span class="question-number" @dblclick="changeOptionType(data)">
               {{ computedQuestionNumber(i, data.option_number_show_mode) }}.
             </span>
@@ -39,6 +35,7 @@
               <RichText v-model="item.content" placeholder="输入内容" :inline="true" />
             </div>
             <UploadAudio
+              :key="i + Math.random().toString(36).slice(-6)"
               :file-id="item.file_id_list?.[0]"
               :item-index="i"
               @upload="uploads"

+ 1 - 1
src/views/exercise_questions/data/common.js

@@ -31,7 +31,7 @@ export const questionTypeOption = [
     label: '口语题',
     children: [
       { label: '朗读题', value: 'read_aloud' },
-      { label: '听后复述', value: 'repeat', disabled: true },
+      { label: '听后复述', value: 'repeat' },
       { label: '回答问题', value: 'spoken_answer', disabled: true },
       { label: '看图说话', value: 'talk_picture' },
       { label: '对话题', value: 'dialogue' },