xjc 4 years ago
parent
commit
f0e400b588
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/post/post.js

+ 1 - 1
pages/post/post.js

@@ -360,7 +360,7 @@ Page({
       if (formData.subject_item.indexOf("特种作业人员")==-1){
       if (formData.subject_item.indexOf("特种作业人员")==-1){
         formData.class_id = data.classList[data.class_].id
         formData.class_id = data.classList[data.class_].id
       }else{
       }else{
-        formData.class_id = 0
+        formData.class_id = data.classList[data.class_].id
       }
       }
     }else{
     }else{
       formData.class_id = data.class_id
       formData.class_id = data.class_id