mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Merge branch 'master' of github.com:nuxt/nuxt.js
This commit is contained in:
commit
9c16c0d3f2
@ -130,7 +130,7 @@ function render (to, from, next) {
|
||||
if (typeof Component.options.validate !== 'function') return
|
||||
isValid = Component.options.validate({
|
||||
params: to.params || {},
|
||||
query: to.query || {}
|
||||
query : to.query || {}<%= (store ? ', store: context.store' : '') %>
|
||||
})
|
||||
})
|
||||
if (!isValid) {
|
||||
|
@ -153,7 +153,7 @@ export default context => {
|
||||
if (typeof Component.options.validate !== 'function') return
|
||||
isValid = Component.options.validate({
|
||||
params: context.route.params || {},
|
||||
query: context.route.query || {}
|
||||
query: context.route.query || {}<%= (store ? ', store: ctx.store' : '') %>
|
||||
})
|
||||
})
|
||||
if (!isValid) {
|
||||
|
Loading…
Reference in New Issue
Block a user