type: [],
                  
                  
                          maintypes: [],
                  
                  
                          name: null,
                  
                  
                          main: null,
                  
                  
                          type_type: null,
                  
                  
                          faqs: [],
                  
                  
                          fields: [],
                  
                  
                          banner2: null,
                  
                  
                          banner: null,
                  
                  
                          select_fields: [],
                  
                  
                          design_version: 0,
                  
                  
                      }
                  
                  
                  },
                  
                  
                  mounted() {
                  
                  
                      this.update();
                  
                  
                  },
                  
                  
                  
                  
                  
                  methods: {
                  
                  
                      update: function () {
                  
                  
                          axios.get('getDataModeratorType/' + this.id).then((response) => {
                  
                  
                              this.type = response.data.type;
                  
                  
                              this.maintypes = response.data.maintypes;
                  
                  
                              this.name = this.type.name;
                  
                  
                              this.main = this.type.main_type_product_id;
                  
                  
                              this.type_type = this.type.type;
                  
                  
                              this.faqs = this.type.faqs !== null ? response.data.type.faqs : [{
                  
                  
                                  title: '',
                  
                  
                                  content: '',
                  
                  
                              }];
                  
                  
                              this.fields = response.data.fields;
                  
                  
                              this.design_version = this.type.design_version;
                  
                  
                          });
                  
                  
                      },
                  
                  
                
если я правильно понял, то тебе нужно стрелочную функцию прописать update: () => { ... }
В стрелке теряется контекст вьюшный
А то, да, ты прав
Спасибо попробую
Обсуждают сегодня