mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
server proposal for validation
This commit is contained in:
parent
42e16a650b
commit
99400bb12d
@ -153,7 +153,8 @@ 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 : context.store.state || {}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user