File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export interface PathToRegexpOptions {
92
92
interface _RouteConfigBase {
93
93
path : string
94
94
name ?: string
95
+ children ?: RouteConfig [ ]
95
96
redirect ?: RedirectOption
96
97
alias ?: string | string [ ]
97
98
meta ?: any
@@ -107,7 +108,6 @@ interface RouteConfigSingleView extends _RouteConfigBase {
107
108
108
109
interface RouteConfigMultipleViews extends _RouteConfigBase {
109
110
components ?: Dictionary < Component >
110
- children ?: RouteConfig [ ]
111
111
props ?: Dictionary < boolean | Object | RoutePropsFunction >
112
112
}
113
113
Original file line number Diff line number Diff line change @@ -67,6 +67,16 @@ const router = new VueRouter({
67
67
} )
68
68
} ,
69
69
routes : [
70
+ {
71
+ path : '/foo' ,
72
+ component : Home ,
73
+ children : [ { path : '' , component : Home } ]
74
+ } ,
75
+ {
76
+ path : '/foo' ,
77
+ components : { default : Home } ,
78
+ children : [ { path : '' , component : Home } ]
79
+ } ,
70
80
{
71
81
path : '/' ,
72
82
name : 'home' ,
You can’t perform that action at this time.
0 commit comments