сервера:
                  
                  
                    mounted(){
                  
                  
                      this.$store.dispatch({
                  
                  
                        type: 'loadBotCommands',
                  
                  
                        id: this.id,
                  
                  
                        botCommands: this.botCommands
                  
                  
                      })
                  
                  
                    }
                  
                  
                  
                  
                  
                  сам экшн:
                  
                  
                          loadBotCommands(context, { id, botCommands }) {
                  
                  
                              axios.get('/api/bots/' + id + '/coding').then((response) => {
                  
                  
                                  return botCommands = response.data.result
                  
                  
                              })
                  
                  
                          },
                  
                  
                  до и после запроса массив никак не меняется, в чем ошибка?
                  
                  
                
Теряешь реактивность
Зачем return в then ? И не потерял ли ты this ? this.botCommands ?
Обсуждают сегодня