fix server validate

This commit is contained in:
Ilya 2017-04-05 22:33:11 +03:00 committed by GitHub
parent 3e7d0a19ed
commit 6c0f138b7d

View File

@ -153,7 +153,7 @@ export default context => {
if (typeof Component.options.validate !== 'function') return
isValid = Component.options.validate({
params: context.route.params || {},
query: context.route.query || {}<%= (store ? ', store: context.store' : '') %>
query: context.route.query || {}<%= (store ? ', store: ctx.store' : '') %>
})
})
if (!isValid) {