No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    axios in notify actions

    Help
    1
    1
    55
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nomad last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post