fix: router Expected "0" to be defined (#4394)

This commit is contained in:
Clark Du 2018-11-24 00:02:13 +00:00 committed by Pooya Parsa
parent 47f02ae5ca
commit 54d273720c

View File

@ -434,7 +434,7 @@ function tokensToFunction(tokens) {
continue
}
const value = data[token.name]
const value = data[token.name || 'pathMatch']
let segment
if (value == null) {