hare8999@163.com пре 2 година
родитељ
комит
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 => {