zhangjie 1 жил өмнө
parent
commit
4de01eb553

+ 3 - 3
card/components/CardDesign.vue

@@ -393,9 +393,6 @@ export default {
           (item) => !OTHER_ELEMENT.includes(item.type)
         );
         element.sign = lastTopicElement ? lastTopicElement.sign : "objective";
-        if (item.insertTopic && item.insertTopic.id) {
-          element.insertTopic = item.insertTopic;
-        }
         this.addElement(element);
         this.setCurElement(element);
         this.$nextTick(() => {
@@ -405,6 +402,9 @@ export default {
           });
         });
       } else {
+        if (item.insertTopic && item.insertTopic.id) {
+          element.insertTopic = item.insertTopic;
+        }
         this.setCurElement(element);
         this.$refs.ElementPropEdit.open();
         // to elementPropEdit/ElementPropEdit open topic edit dialog