zhangjie преди 4 години
родител
ревизия
319686fe14
променени са 1 файла, в които са добавени 11 реда и са изтрити 6 реда
  1. 11 6
      src/modules/card/components/RightClickMenu.vue

+ 11 - 6
src/modules/card/components/RightClickMenu.vue

@@ -83,12 +83,17 @@ export default {
         top: e.y + "px",
         left: e.x - 50 + "px"
       });
-      const positionInfos = fetchSameExplainNumberExplainChildernPositionInfo(
-        this.curElement,
-        this.pages
-      );
-      this.showDeleteChildBtn = positionInfos.length >= 2;
-      this.IS_EXPLAIN_CHILDREN = this.curElement.type === "EXPLAIN_CHILDREN";
+      // 作文题非拆分题
+      if (this.curElement.type === "COMPOSITION") {
+        this.showDeleteChildBtn = false;
+      } else {
+        const positionInfos = fetchSameExplainNumberExplainChildernPositionInfo(
+          this.curElement,
+          this.pages
+        );
+        this.showDeleteChildBtn = positionInfos.length >= 2;
+        this.IS_EXPLAIN_CHILDREN = this.curElement.type === "EXPLAIN_CHILDREN";
+      }
       // 直接用了setTimeout,解决弹出框跟随延迟的问题,似乎粗暴了点。
       setTimeout(() => {
         this.visible = true;