Browse Source

parent topicno丢失问题

zhangjie 1 năm trước cách đây
mục cha
commit
39446f2a45

+ 3 - 3
src/modules/stmms/components/markParam/ModifyMarkParams.vue

@@ -213,7 +213,7 @@ export default {
               const compositionData = structData.find(
                 (struct) =>
                   struct.cardTopicType === "COMPOSITION" &&
-                  struct.mainNumber === topic.parent.topicNo * 1
+                  struct.mainNumber === topic.topicNo * 1
               );
               if (compositionData) return;
             } else {
@@ -224,8 +224,8 @@ export default {
             if (!typeInfo) return;
 
             let data = {
-              mainNumber: topic.parent.topicNo * 1,
-              mainTitle: topic.parent.topicName,
+              mainNumber: topic.topicNo * 1,
+              mainTitle: topic.topicName,
               questionsCount,
               startNumber,
               cardTopicType: topic.type,