mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Update server.js
This commit is contained in:
parent
99a03812a4
commit
4c012e93af
@ -152,8 +152,8 @@ export default context => {
|
|||||||
if (!isValid) return
|
if (!isValid) return
|
||||||
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 || {}<%= (store ? ', store: context.store' : '') %>
|
query: context.route.query || {}<%= (store ? ', store: context.store' : '') %>
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user