Преглед на файлове

fixed null-array read bug

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 => {