Answer the question
In order to leave comments, you need to log in
How to make custom sidebar for multiple pages?
The situation is like this:
layouts/default.vue
store/index.js
I store the switch, if state.sidebar.right === true
then in I layouts/default
show the button for opening the right sidebar. API
. <v-navigation-drawer>
it so that it opens when you click on the button with layout/default
? Obligatory in layout/default
? Tried storing it in the page component ( pages/cat/index.vue
) but doesn't work. Probably you need to keep its state also in the store, do I understand correctly? <nuxt-child>
also tried to use but loaded the content that is in<nuxt>
Answer the question
In order to leave comments, you need to log in
Use Vue Router . Load data in routing hooks. Describe the different paths in accordance with which certain components will be loaded.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question