| 1234567891011121314151617181920212223242526 |
- import Vue from 'vue'
- import VueRouter from 'vue-router'
-
- Vue.use(VueRouter)
-
- import App from '@/app.vue'
-
- import store from '@/store'
-
- import IndexPage from '@/pages/index.vue'
- import ListPage from '@/pages/list'
-
- const router = new VueRouter({
- mode: 'history',
- routes: [
- { path: '/', component: IndexPage },
- { path: '/lazy', component: () => import(/* webpackChunkName: "pages-lazy" */ './pages/lazy.vue') },
- {
- path: '/:type',
- component: ListPage,
- props: { sidebar: true }
- },
- ]
- })
-
- new Vue({ store, router, render: h => h(App) }).$mount('#wp-app')
|