소스 검색

fix 默认面板展开导致的展开部分题干不更新

ChengYuXuan 5 년 전
부모
커밋
38ed65e2ad
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/views/teacher/components/QuestionList.vue

+ 5 - 2
src/views/teacher/components/QuestionList.vue

@@ -170,8 +170,11 @@ export default Vue.extend({
           return { ...val, typeText: questionTypeToText(val.type), score: 5 }
         })
         this.totalNum = data.result.totalNum
-        this.expanded = this.questions
-        this.loading = false
+        this.expanded = []
+        this.$nextTick(() => {
+          this.expanded = this.questions
+          this.loading = false
+        })
       })
     },
     deleteItem(item: Question) {