Update client.js

This commit is contained in:
Sébastien Chopin 2017-04-05 18:25:12 +02:00 committed by GitHub
parent 9c4244635c
commit 99a03812a4

View File

@ -129,8 +129,8 @@ 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 || {}<%= (store ? ', store: ctx.store' : '') %>
params: to.params || {},
query: to.query || {}<%= (store ? ', store: ctx.store' : '') %>
})
})
if (!isValid) {