when defining routes:
const routes = [{
path: "/",
meta: {
title: ""
},
component: (resolve) => require(["./views/index.vue"], resolve)
children: [
{
path: "/a",
name: "a",
title:"a",
component: (resolve) => require(["./views/a.vue"], resolve)
},
{
path: "b",
name: "b",
title:"b",
component: (resolve) => require(["./views/b.vue"], resolve)
},
]
}];
look at the path, in children here. I"ve seen some /
and some don"t. Such as path:" / a"
and path:"b"
above.
is there any difference in this?