сторону я думаю
                  
                  
                   let photo_from = new Promise((resolve) => {
                  
                  
                            console.log('resolve promises');
                  
                  
                            console.log(resolve);
                  
                  
                              self.addPhotos(photos, 'photo_from_inspection', false, true);
                  
                  
                              console.log('photo_from_inspection');
                  
                  
                              this.$nextTick(function() {
                  
                  
                                console.log(self.photo_from_inspection);
                  
                  
                            });
                  
                  
                          promises.push(photo_from)
                  
                  
                  тут у меня должна сработать функция self.photo_from_inspection
                  
                  
                  для краткости что бы было меньше кода напишу только тот клачек где аякс возвращает результат и записывает в  self.photo_from_inspection
                  
                  
                   data: function() {
                  
                  
                        return {
                  
                  
                          photo_from_inspection: '',
                  
                  
                        }
                  
                  
                    },
                  
                  
                   success: function (rooms) {
                  
                  
                                self.photo_from_inspection = rooms;
                  
                  
                                i += 1
                  
                  
                                if(typeof result == 'undefined') {
                  
                  
                                  send(i);
                  
                  
                                }
                  
                  
                                photo_number = i; 
                  
                  
                              }
                  
                  
                  ну она не записывается не знаю почему и еще должен сработать promice all, но он тоже не срабатывает
                  
                  
                   Promise.all(promises).then(values => {
                  
                  
                          console.log(typeof photo_from_inspection);
                  
                  
                          console.log(photo_from_inspection);
                  
                  
                          console.log(typeof this.editFile);
                  
                  
                          console.log(this.editFile);
                  
                  
                            let blob_file = {image: photo_from_inspection.photo_from_inspection}
                  
                  
                          let file = this.editFile? typeof this.editFile.image !== 'undefined':blob_file;
                  
                  
                            this.updateAutoCover(this.editFile, report_id);
                  
                  
                          }); 
                  
                  
                  ес
                  
                  
                
может кто подсказать
Обсуждают сегодня