hare8999@163.com 2 лет назад
Родитель
Сommit
e620b70cee
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/views/elective/report/components/major-introduce-batch.vue

+ 1 - 1
src/views/elective/report/components/major-introduce-batch.vue

@@ -28,7 +28,7 @@ export default {
   },
   computed: {
     majors() {
-      const all = this.getOptionalMajors()
+      const all = this.getOptionalMajors() || []
       if (!all.length) return []
       const distinctMajors = {}
       all.forEach(item => {