JiriChara / vue-kindergarten

Modular security for Vue, Vuex, Vue-Router and Nuxt
MIT License
312 stars 24 forks source link

Passing variables to routePerimeterAction in nuxt #39

Open richardwhatever opened 6 years ago

richardwhatever commented 6 years ago

Hi,

I'm trying to follow your examples re guarding routes in nuxt. You add a perimeter with routePerimeterAction = 'update' in the example at https://github.com/JiriChara/vue-kindergarten#usage-with-nuxtjs

However, when this code then runs, using the example article perimiter further up the page, the "article" property of update(article) is always undefined. Is this expected? Is there a way to wire up values from the route into the perimeter action?

Thanks

jannishuebl commented 5 years ago

Hi,

I have the same problem, have you figured out an solution?

Thanks