File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export interface Location {
107
107
name ?: string ;
108
108
path ?: string ;
109
109
hash ?: string ;
110
- query ?: Dictionary < string > ;
110
+ query ?: Dictionary < string | string [ ] > ;
111
111
params ?: Dictionary < string > ;
112
112
append ?: boolean ;
113
113
replace ?: boolean ;
@@ -117,7 +117,7 @@ export interface Route {
117
117
path : string ;
118
118
name ?: string ;
119
119
hash : string ;
120
- query : Dictionary < string > ;
120
+ query : Dictionary < string | string [ ] > ;
121
121
params : Dictionary < string > ;
122
122
fullPath : string ;
123
123
matched : RouteRecord [ ] ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ const route: Route = router.currentRoute;
105
105
const path : string = route . path ;
106
106
const name : string | undefined = route . name ;
107
107
const hash : string = route . hash ;
108
- const query : string = route . query [ "foo" ] ;
108
+ const query : string | string [ ] = route . query [ "foo" ] ;
109
109
const params : string = route . params [ "bar" ] ;
110
110
const fullPath : string = route . fullPath ;
111
111
const redirectedFrom : string | undefined = route . redirectedFrom ;
@@ -148,7 +148,8 @@ router.push({
148
148
foo : "foo"
149
149
} ,
150
150
query : {
151
- bar : "bar"
151
+ bar : "bar" ,
152
+ foo : [ "foo1" , "foo2" ]
152
153
} ,
153
154
hash : "hash"
154
155
} ) ;
You can’t perform that action at this time.
0 commit comments