Procházet zdrojové kódy

knowledge tree & chapter tree - query condition check

hare8999@163.com před 2 roky
rodič
revize
684f5c7bf5
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/views/accurateTeaching/library/index.vue

+ 2 - 0
src/views/accurateTeaching/library/index.vue

@@ -736,6 +736,7 @@ export default {
           // gradeid:301
         };
         this.deptOptions = [];
+        if (!Ajax.gradeId) return
         this.treeLoading = true;
         treeList(Ajax)
           .then((response) => {
@@ -760,6 +761,7 @@ export default {
           pharseId: this.queryParams.pharseId,
         };
         this.KnowledgeOptions = [];
+        if (!Ajax.subjectId) return
         this.treeLoading = true;
         knowledgeTree(Ajax)
           .then((response) => {