lsc 1 year ago
parent
commit
ab99403fd4
2 changed files with 12 additions and 0 deletions
  1. 6 0
      src/components/pages/easy/addCourse.vue
  2. 6 0
      src/components/pages/task/addCourse.vue

+ 6 - 0
src/components/pages/easy/addCourse.vue

@@ -9539,6 +9539,12 @@ export default {
           "*"
         );
       } else if (i == 57) {
+        if (!this.cid) {
+          this.$message.error(
+            "如果您需要在内容中添加模板,请在修改模式下进行添加。"
+          );
+          return;
+        }
         window.parent.postMessage(
           {
             tools: "57y",

+ 6 - 0
src/components/pages/task/addCourse.vue

@@ -9536,6 +9536,12 @@ export default {
           "*"
         );
       } else if (i == 57) {
+        if (!this.cid) {
+          this.$message.error(
+            "如果您需要在内容中添加模板,请在修改模式下进行添加。"
+          );
+          return;
+        }
         window.parent.postMessage(
           {
             tools: "57y",