mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12: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 (!isValid) return
|
||||||
if (typeof Component.options.validate !== 'function') return
|
if (typeof Component.options.validate !== 'function') return
|
||||||
isValid = Component.options.validate({
|
isValid = Component.options.validate({
|
||||||
params: to.params || {},
|
params : to.params || {},
|
||||||
query: to.query || {}
|
query : to.query || {},
|
||||||
|
store : context.store.state || {}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user