Update client.js

This commit is contained in:
Sébastien Chopin 2017-04-05 18:24:15 +02:00 committed by GitHub
parent 99400bb12d
commit 7ef6411269

View File

@ -130,8 +130,7 @@ function render (to, from, next) {
if (typeof Component.options.validate !== 'function') return
isValid = Component.options.validate({
params : to.params || {},
query : to.query || {},
store : context.store.state || {}
query : to.query || {}<%= (store ? ', store: ctx.store' : '') %>
})
})
if (!isValid) {