• Now all data be ready for publish, We had made our blog alive now. Haha.



  • These days CCP GFW blocked all the IPs from US and when I switch my IP in google Cloud, the disk data cannot be restore again. I have to restart my blog totally, Now the website is still building…



Q: Nuxt nested routes – Stack Overflow

Vue PingBook 3 weeks ago (10-23) 12 0

Question

:
Im having a basic universal app created with Nuxt.

Im new with vue and nuxt and im trying to understand how routing works, to be more specific how nested routes works.

So my projects structure is

├── parent
 │   ├── child1.vue
 │   └── child2.vue
 ├── parent.vue

and in the parent page i have two links for child1 and child2

<template>
    <div>
        <h3>Parent page</h3>
        <nuxt-link to="/parent/child1"> about1 page</nuxt-link>
        <nuxt-link to="/parent/child2"> about2 page</nuxt-link>
    </div>
</template>

My goal is when i click on the links to go to next page for example /parent/child2,

but that doesn’t happens. When i click on the links it reopens the same parent page.

Answer

:
Move file parent.vue to parent/index.vue




Copyright from PingBook Blog, If not specified, they are original. This site uses BY-NC-SAProtocol authenticated.
For reprinting, please indicate the link of the original text:Q: Nuxt nested routes – Stack Overflow
LIKE (0)
[1725641479@qq.com]
SHARE (0)
PingBook
Author:
We create, We sharing! Tag every value data your sharing
Submit comments
Cancel comments
emoji picture bold strikethrough center italic check in

Hi,you need to provide your name and email adress!

  • Name (Required)
  • Email (Required)
  • Website