Static GitHub Issues

[1991] How to dynamic switch theme

prev: Need help using Media Element with Nuxt
next: Component Not Updating On Load Using Async/Fetch/Vuex

I have a need, I want to create a company offical site, different company has different theme, and when visit one company page, I must specify the compnay id, and get the theme by the id from api (async), then render different UI component by different theme.

for example I visit http://xxxx?company=1 will render the red theme and I visit http://xxxx?company=2 will render the blue theme

so I struct the project like:

pages
  -red
      index.vue
  -blue
      index.vue

but the result is nuxt always root the view page to pages can't specify a rule, so how can I realize this?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1767">#c1767</a>)</em></sub></div>