mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
server proposal for validation
This commit is contained in:
parent
42e16a650b
commit
99400bb12d
@ -152,8 +152,9 @@ export default context => {
|
||||
if (!isValid) return
|
||||
if (typeof Component.options.validate !== 'function') return
|
||||
isValid = Component.options.validate({
|
||||
params: context.route.params || {},
|
||||
query: context.route.query || {}
|
||||
params : context.route.params || {},
|
||||
query : context.route.query || {},
|
||||
store : context.store.state || {}
|
||||
})
|
||||
})
|
||||
if (!isValid) {
|
||||
|
Loading…
Reference in New Issue
Block a user