浏览代码

knowledge tree & chapter tree - query condition check

hare8999@163.com 2 年之前
父节点
当前提交
684f5c7bf5
共有 1 个文件被更改,包括 2 次插入0 次删除
  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) => {