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