dingxin 5 년 전
부모
커밋
a54acd5714
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5
    4
      src/pages/activity/helpActivity/edithelpActivity.jsx

+ 5
- 4
src/pages/activity/helpActivity/edithelpActivity.jsx 파일 보기

85
           message.error('助力邀请人数不能超过200')
85
           message.error('助力邀请人数不能超过200')
86
           return
86
           return
87
         }
87
         }
88
+          // 助力邀请人数>0
89
+        if (values.personNum <= 0) {
90
+          message.error('助力邀请人数大于0')
91
+          return
92
+        }
88
 
93
 
89
         // 判断助力人数必须大于0
94
         // 判断助力人数必须大于0
90
         if (values.isEnlist === 1) {
95
         if (values.isEnlist === 1) {
92
           message.error('限制助力次数必须大于0')
97
           message.error('限制助力次数必须大于0')
93
           return
98
           return
94
         }
99
         }
95
-        if (values.personNum <= 0) {
96
-          message.error('助力邀请人数大于0')
97
-          return
98
-        }
99
       }
100
       }
100
         const { activityTime, signupTime, ...submitValue } = values
101
         const { activityTime, signupTime, ...submitValue } = values
101
         const [startDate, endDate] = activityTime
102
         const [startDate, endDate] = activityTime