ZhaoChenguang 6 months ago
parent
commit
339d6c9cf4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      product-set/src/views/jiucuo-set/index.vue

+ 1 - 1
product-set/src/views/jiucuo-set/index.vue

@@ -244,7 +244,7 @@ export default {
     getClassData(val) {
     getClassData(val) {
       getClass(getFormData({ grade: val })).then((res) => {
       getClass(getFormData({ grade: val })).then((res) => {
         this.classList = res.result;
         this.classList = res.result;
-        this.classList.forEach((item) => {
+        this.classList?.forEach((item) => {
           this.classIdArr.push(item.class_id);
           this.classIdArr.push(item.class_id);
         });
         });
         if (!this.bookName) {
         if (!this.bookName) {