浏览代码

选科查询bug修复

shilipojs 2 年之前
父节点
当前提交
ac24bd6cba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/career/subject/subjectChoice.vue

+ 1 - 1
src/views/career/subject/subjectChoice.vue

@@ -168,7 +168,7 @@
         this.httpGetXkcxList();
       },
       httpGetXkcxList() {
-        const course = [...this.selected.sciences[0],...this.selected.sciences[1]]
+        const course = [...this.selected.sciences[0],...this.selected.sciences[1]].filter(item => item != '')
         if (course.length<3) return;
         this.loading = true
         xkcxlist({