NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. import App from '@/app.vue'
  5. import store from '@/store'
  6. import IndexPage from '@/pages/index.vue'
  7. const router = new VueRouter({
  8. mode: 'history',
  9. routes: [
  10. // Home Page
  11. { path: '/', component: IndexPage },
  12. // List Pages
  13. { path: '/episodes', component: () => import(/* webpackChunkName: "pages-list" */ './pages/list.vue'), props: { sidebar: false } },
  14. { path: '/:type', component: () => import(/* webpackChunkName: "pages-list" */ './pages/list.vue'), props: { sidebar: true } },
  15. // Single Pages
  16. { path: '/:type/:slug', component: () => import(/* webpackChunkName: "pages-single" */ './pages/single.vue'), props: { sidebar: true } },
  17. ]
  18. })
  19. new Vue({ store, router, render: h => h(App) }).$mount('#wp-app')