.post('/sign_up.json', {
                      
                      
                                kind: this.kind,
                      
                      
                                user: this.user
                      
                      
                              })
                      
                      
                              .then(() => {
                      
                      
                                reachGoal(GOALS.FORM_REGISTRATION);
                      
                      
                      
                      
                      
                                if (this.afterSignInPath) {
                      
                      
                                  window.location.pathname = this.afterSignInPath;
                      
                      
                                } else {
                      
                      
                                  window.location.reload();
                      
                      
                                }
                      
                      
                              })
                      
                      
                              .catch(({ response }) => {
                      
                      
                                this.buttonDisabled = false;
                      
                      
                      
                      
                      
                                if (response && response.data) {
                      
                      
                                  const errors = response.data.errors;
                      
                      
                                  this.takenPhoneNumber = response.data.takenPhoneNumber;
                      
                      
                                  this.errors.clear();
                      
                      
                      
                      
                      
                                  for (const field of Object.keys(errors)) {
                      
                      
                                    this.errors.add(field, errors[field]);
                      
                      
                                  }
                      
                      
                                }
                      
                      
                              });
                      
                      
                      Как понимаю, отправляю не те данные?  Если да, то где ошибка :С
                      
                      
                    
Пробовали отладчик в браузере?
for (const field of Object.keys(errors)) { this.errors.add(field, errors[field]); } Здесь корень зла. (Забыл упомянуть, использую vee-validate в том числе). Посмотрю еще в отладчике, но что-то прям душно :\ Спасибо
Обсуждают сегодня