mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Update server.js
This commit is contained in:
parent
7ef6411269
commit
9c4244635c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user