File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export interface Location {
108
108
name ?: string ;
109
109
path ?: string ;
110
110
hash ?: string ;
111
- query ?: Dictionary < string | string [ ] > ;
111
+ query ?: Dictionary < string | ( string | null ) [ ] | null | undefined > ;
112
112
params ?: Dictionary < string > ;
113
113
append ?: boolean ;
114
114
replace ?: boolean ;
@@ -118,7 +118,7 @@ export interface Route {
118
118
path : string ;
119
119
name ?: string ;
120
120
hash : string ;
121
- query : Dictionary < string | string [ ] > ;
121
+ query : Dictionary < string | ( string | null ) [ ] > ;
122
122
params : Dictionary < string > ;
123
123
fullPath : string ;
124
124
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 | string [ ] = route . query [ "foo" ] ;
108
+ const query : string | ( string | null ) [ ] | null = 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 ;
@@ -149,6 +149,9 @@ router.push({
149
149
} ,
150
150
query : {
151
151
bar : "bar" ,
152
+ empty : null ,
153
+ removed : undefined ,
154
+ withEmpty : [ "1" , null ] ,
152
155
foo : [ "foo1" , "foo2" ]
153
156
} ,
154
157
hash : "hash"
You can’t perform that action at this time.
0 commit comments