Need to access the routeParam on a route page. #1051
-
I have some code like this: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I've tried some other approaches - such as setting the item with my link, but that didn't work either. methods: { setItem({ commit }, obj) { SET_ITEM(state, obj) { |
Beta Was this translation helpful? Give feedback.
-
I just want to navigate to the page with the slug of this item / object as the url and have access to the item in order to use its properties in the template. |
Beta Was this translation helpful? Give feedback.
-
Have you seen https://vite-plugin-ssr.com/pageContext-anywhere? |
Beta Was this translation helpful? Give feedback.
-
Probably. But I don't understand. I'm getting access to the store in components, but not here. Do I need to use a component on the route page? |
Beta Was this translation helpful? Give feedback.
Seems more like a Vue question than a VPS one.