axios in notify actions



  • I’m trying to reload a page in a mobile application via notify.

           Notify.create({
                  position: 'top',
                  message: `${process.env.InternetSuccessText}`,
                  html: true,
                  // timeout: 1000,
                  color: 'positive',
                  actions: [{label: `${process.env.RefreshText}`, color: 'black', handler: () => {
                      // this.loadCatalog(
                      alert('reload')
                      axios.get('https://my-url')
                        .then((res) => {
                          this.items = res.data})
                        .catch((er)=>{
                          console.log('errrrrrrrr:', er);
                        })
                    }}],
                })
    

    alert is triggered, axios is ignored, no errors.


Log in to reply