How to understand this sentence?

vue route official tutorial:

Note that nested paths that start with / are treated as root paths. This allows you to make full use of nested components without setting nested paths.
Mar.22,2021

means

path: '/first',
children: [
    {
        path: '/second'
    }
]
If

is matched with / , the path of the child route second is / second instead of / first/second

.

the path of the child route second should be 'second' as follows

path: '/first',
children: [
    {
        path: 'second'
    }
]

vue-router will be spliced into / first/second'

if your child route is written as'/ second'
vue-router, you will think that it is the root path. The final path / second will not be / first/second
, that is, the page will not find it when you navigate to the route / first/second, but you can find the route / second at this time

.
Menu