nuxt-community / nuxt7

📱 Full Featured iOS & Android PWA Apps with Nuxt.js and Framework7
https://nuxt7.netlify.com/
MIT License
325 stars 33 forks source link

how to use setLayout/loadLayout of runtime/App.js #134

Open twnaing opened 3 years ago

twnaing commented 3 years ago

I see the abov-mentioned stub methods here

    setLayout (layout) {
      // STUB
    },
    loadLayout (layout) {
      // STUB
    }

I was wondering

I want to load the theme setting from vuex store (which is persisted). Currently I am trying to do that in every pages' created event (which is clearly not a good idea and produced a lot of duplicate codes).