proposal for validation pages

This commit is contained in:
Ilya 2017-04-04 14:25:48 +03:00 committed by GitHub
parent 89edc32298
commit 42e16a650b
1 changed files with 3 additions and 2 deletions

View File

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