diff --git a/lib/app/client.js b/lib/app/client.js index 5d12832301..ad935ff848 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -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) {