Sfoglia il codice sorgente

knowledge tree & chapter tree - query condition check

hare8999@163.com 2 anni fa
parent
commit
684f5c7bf5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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) => {