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

123456789101112131415161718192021
  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. { path: '/', component: IndexPage },
  11. { path: '/:type', component: () => import(/* webpackChunkName: "pages-list" */ './pages/list.vue'), props: { sidebar: true } },
  12. { path: '/:type/:id', component: () => import(/* webpackChunkName: "pages-single" */ './pages/single.vue'), props: { sidebar: true } },
  13. ]
  14. })
  15. new Vue({ store, router, render: h => h(App) }).$mount('#wp-app')