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

    vue routes

    Help
    1
    1
    72
    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.
    • G
      ghadaYoussef last edited by

      hey everyone , I’m facing a small problem with routes in the below code

      if(this.$router.currentRoute.path == ‘/become-sayes’){
      this.$router.push(’/’)
      console.log(‘in header’,this.$router.currentRoute.path);
      }

      I check if i’m in certain route then I change it but when I print the currentRoute it still print the previous route ‘/become-sayes’ although when I print this.$route only I can see that it actually changed.

      Is there any reason why this happens?

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