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

This commit is contained in:
Clark Du 2018-11-27 21:06:06 +03:30 committed by Pooya Parsa
parent 054fbbcf95
commit 22679cba66
1 changed files with 1 additions and 1 deletions

View File

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