mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: router Expected "0" to be defined (#4394)
This commit is contained in:
parent
744f4025f5
commit
39b1b8e5e0
@ -434,7 +434,7 @@ function tokensToFunction(tokens) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
const value = data[token.name]
|
const value = data[token.name || 'pathMatch']
|
||||||
let segment
|
let segment
|
||||||
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user