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 if (typeof Component.options.validate !== 'function') return
isValid = Component.options.validate({ isValid = Component.options.validate({
params : context.route.params || {}, params : context.route.params || {},
query : context.route.query || {}, query : context.route.query || {}<%= (store ? ', store: context.store' : '') %>
store : context.store.state || {}
}) })
}) })
if (!isValid) { if (!isValid) {