mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 14:11:07 +00:00
proposal for validation pages
This commit is contained in:
parent
89edc32298
commit
42e16a650b
@ -130,7 +130,8 @@ function render (to, from, next) {
|
||||
if (typeof Component.options.validate !== 'function') return
|
||||
isValid = Component.options.validate({
|
||||
params : to.params || {},
|
||||
query: to.query || {}
|
||||
query : to.query || {},
|
||||
store : context.store.state || {}
|
||||
})
|
||||
})
|
||||
if (!isValid) {
|
||||
|
Loading…
Reference in New Issue
Block a user