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 GitHub
parent 744f4025f5
commit 39b1b8e5e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {