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

    load route outside layout?

    Help
    2
    3
    817
    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.
    • ssuess
      ssuess last edited by

      In my main app, I have a q-layout component (that sets up the main window, left hand pane, etc) and inside of that I have my <router-view />. All of this works great for the links inside my left hand pane except for one: LOGOUT. That link logs the user out and forwards them to my Login.vue page, which I would like to take over the whole screen (rather than showing up in the right hand pane as it does now) but I am having some difficulty figuring out how to do this since my links are all in router.js and my router view is inside the q-layout. Any pointers? Thanks!

      1 Reply Last reply Reply Quote 0
      • a47ae
        a47ae last edited by

        How does your router.js look like?
        Make sure that your login route is not a child of your base component but a top level node in your hierarchy, then it shouldn’t use your <router-view> but instead render the whole page.

        1 Reply Last reply Reply Quote 0
        • ssuess
          ssuess last edited by

          Thanks, that led me to a better understanding of child routes, and I now have it working.

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