Update server.js

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

View File

@ -153,8 +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 : context.store.state || {}
query : context.route.query || {}<%= (store ? ', store: context.store' : '') %>
})
})
if (!isValid) {