mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user